• So after the New Year all the posts on my website that were published in 2010 (I don’t have an posts from 2009 or earlier) stopped displaying on my pages. My posts that have been published in 2011 do display.

    This is the code that I am using to display the posts on my pages:

    <?php query_posts('category_name='.get_the_title().'&post_status=publish,future');?>
    
                            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
                                <td>
    
                                    <div class="subtext">
    
                                    	<?php the_content(); ?>
    
                                    </div>
    
                                </td>
    
                            <?php endwhile; else: endif; ?>

    Any thoughts or help or would greatly appreciated!

    Thanks,
    Erik

Viewing 1 replies (of 1 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    what does this suppose to do:

    <?php query_posts('category_name='.get_the_title().'&post_status=publish,future');?>

    get_the_title gets the title of a Post or Page and not the title of a category.
    You can’t use commas here (I think): post_status=publish,future
    “future” will only show posts that are to be published in the future.

    What are you trying to do? List post from a specific category?

Viewing 1 replies (of 1 total)

The topic ‘Posts from 2010 wont display’ is closed to new replies.