Posts disappeared
-
Hi
the site in question: http://www.thebeepseals.com
I amended index.php per another post on here so as to show only posts from the news category on the home page. this was working fine until today. it seems like perhaps the posts have expired? if i click ‘older posts’ they appear but they no longer appear by default on the home page. i’m new to wordpress so not sure how to approach fixing this. basically i want the last 5 posts of the news page to appear on the home page by default and not expire.
here is my index.php code as it is now:
<?php get_header(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if ( (in_category('1')) || !is_home() ) { ?> <!-- Output the post here --> <?php the_date('','<h2>','</h2>'); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> <div class="storycontent"> <?php the_content(__('(more...)')); ?> </div> <div class="feedback"> <?php wp_link_pages(); ?> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> </div> </div> <?php comments_template(); // Get wp-comments.php template ?> <?php } ?> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> <?php posts_nav_link(' — ', __('« Newer Posts'), __('Older Posts »')); ?> <?php get_footer(); ?>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Posts disappeared’ is closed to new replies.