• Resolved marius.cucuruz

    (@mariuscucuruz)


    Hi,
    I have an annoying issue / bug and I am unable to figure out what’s causing it or how to fix it. To make matters worse I don’t know when this started to occur either so I just cannot relate it to another event (ie plugin install etc).

    Basically what happens is that not all posts are listed in the loop. All pages that make use of the_loop (have_posts()) will only list every other post (odd numbers) starting with the latest. The weirdest thing is that the wrapper div for each post has the ID of the post that it’s skipping (ie the even posts in the loop). Also, whatever number of posts I set on the settings -> reading page, it will only show half in the front end. Clearly there’s a hook or filter or plugin that is interfering with this but I just haven’t been able to figure it out yet and it’s most annoying too.

    Maybe someone out there has had this issue before and is able to provide an explanation? I’m using a heavily customized theme and quite a few plugins a multisite WP 3.9.1.

    Please help! It’s proven to be such a pain so far.

    Thank you.

Viewing 1 replies (of 1 total)
  • Thread Starter marius.cucuruz

    (@mariuscucuruz)

    Figured it out… inside the_loop there were 2 calls to the_post() which lead to this behaviour. So frustrating!

    The lesson I’ve learned today is to check all parts of a theme (get_template_part()) carefully and patiently…

    hope I didn’t waste anyone else’s time with this;

Viewing 1 replies (of 1 total)
  • The topic ‘the_loop only shows every other post’ is closed to new replies.