jarin
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Fixing WordPress
In reply to: Posts disappearedok guys i solved this. it now only shows cat 3 on the home page! thanks!
here’s the code if anyone’s interested:
<?php get_header(); ?> <?php if (is_home() ) { ?> <?php query_posts('cat=1'); ?> <?php } ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!-- 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 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(); ?>Forum: Fixing WordPress
In reply to: Posts disappearedhey whooami..thanks for that..however i think im back at square one where the posts from the news category have disappeared from the home page. i suspect it’s because they are several days old? how can i keep them up there permanently (the most recent 5 posts at least)..?
rudolf45: im checkin out that link thanks for that
Forum: Fixing WordPress
In reply to: Posts disappearedah ok..so i’ve taken out the “!” making the if clause into:
<?php if ( (in_category('1')) || is_home() ) { ?>but now it’s showing latest posts from all categories..
how would i get it to only show latest posts from news (ie cat 1)?
thx
Forum: Fixing WordPress
In reply to: Posts disappearedno plugins..
why have the news posts disappeared from the home page tho? thanks
Viewing 4 replies - 1 through 4 (of 4 total)