Posts displaying with wrong content (offset)
Howdy
Regular posts for me are displaying in their category page offset by 1. For example, it shows the most recent title, but the content below it is the post 1 prior to that. Has anyone experienced this before, and is there a place I can look to see maybe what is getting queried? Thanks edit: So I removed all the posts and added a test one - my categories are running an infinite loop. Any help where I can figure out why this is happening? to be even clearer... I imported posts from another site. As soon as one of these is active, the site displays all the posts+titles offset by one (the title shows the text of the previous post). If I only use posts created from this current blog, I get an infinite loop in my categories. |
what happens if you swap to twenty-twelve?
|
It works fine with 2012.
I am currently in the process of disabling templates I have made to narrow the problem down. |
have you applied this patch?
PATCH 113-02: A post with two or more categories shows only one in the post footer |
This sounds like the same problem in another thread (today) also. Content of first post was missing, showing content of another previous post.
|
The patch applied changed things...
In a category with one post, now no posts show up. In my other categories, the loop is still present. Can yall link me to the thread that was mentioned? |
are you using 'the_content()' in the vitrual sub-template 'postformat.php'?
|
yes I have not changed those templates at all.
|
Quote:
|
Touche!
Must have changed it in my 'vanilla' backup copy as well. So I should use BFA_POST_CONTENT? (edit: there is no such thing ;]) I guess my question is, is the_content() broke, and if so, what to use if I can't use 'the_content()'? bfa_excerpt works fine, but I want to get the whole post content. I tried to hacking it using bfa_excerpt with a value of 9999, but it won't format the content (links, etc) properly. Thank yall |
Quote:
Quote:
I'm taking a look at the code but the interruptions ('Dampa, dampa, dampa...", "Yes Abel", "...I need a hug") are making it tough going :p (Abel was 2 the begining of December and is about to have a sibling...so I'll probably be seeing a lot of him in the coming weeks :)) |
Thanks for the reply jugglingDampa.;]
Will code up my own loop while waiting. Thank you. |
Dont we need a forum name change to Jugglegrandad? :)
|
jeffe: I have a possible fix. I haven't tested it in all conditions but if you would lie to try it
edit 'montezuma/includes/parse_php.php' and change line 35 from HTML Code:
if (have_posts()) HTML Code:
if (is_single() AND have_posts()) And if it does help, think about donating - I just spent over 5 hours tracking this down |
Quote:
|
Update: if you put in this change change
HTML Code:
if (have_posts()) HTML Code:
if ((is_single() OR is_page()) AND have_posts()) update: see PATCH 113-03: Using 'the_content()' in a virtual template may incorrect results |
All times are GMT -6. The time now is 04:57 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.