Posts randomly don't show up!
-
So this is very frustrating.. I have two query_posts running on this page. The first one puts the content into a css/jquery slider, and the second one dumps each page’s title & content into a div (called “bucket”) to be retrieved for page display. i’m using query_posts on both because i need gallery shortcoded to work.
the thing is, certain of my posts are randomly not coming up in the 2nd loop- they work fine in the get_pages loop that creates the secondary nav bar (within the slider) AND HERE’S THE KICKER- it works fine one minute then the next any particular post might randomly not show up. other ones still show up and the same post info still comes throught the get_pages loop.
I’ve even looked in the mysql database and the ones that dont show up seem to be identical (except for id & content etc)- why are they not showing up? if i delete the post then recreate it, it works fine.
i have a feeling this might be related to the “Types” custom post type plugin, but that’s just a hunch.
here’s the second loop:
<br /> <?php endwhile;<br /> rewind_posts();</p> <p> query_posts('post_type=page');<br /> while (have_posts()) : the_post();<br /> ?><br /> <div class="content_bucket" id="<?php echo $post->ID;?>"><br /> <h1><?php echo $post->post_title; ?></h1><br /> <p><?php the_content(); ?></p><br /> </div><br /> <?php<br /> endwhile;<br /> ?><br />
you can see the site at https://ricbecker.com/jennyhilljazz – the Bands / Discography is the one *currently* not working
- The topic ‘Posts randomly don't show up!’ is closed to new replies.