Revolution Lifestyle. How to show only sticky posts on homepage, not recent post
-
I´m using Revolution Lifestyle as a theme for http://www.howtorepairbadcredit.net. On the home page I have three categories listed with 2 posts. I would like these 2 post remain fixed/sticky, but if I add posts to this category, the most recent post appears on the main homepage where I would like this post to just appear in the category URL and in the sidebar (not on main homepage) .
What to change in the above html to display selected post ID (eg post ID 22,25) as sticky on the home page and move the newest posts to the sidebar ´latest posts´.
<div class=”hpfeatured”>
<h3>Raise Credit Score </h3><!–This is where the thumbnails are found for the homepage bottom section – note the custom field name for this image is “thumbnail”. Recommended image size is 70×70, as the stylesheet is written for this size.–>
<?php $recent = new WP_Query(“cat=1&showposts=2”); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, “thumbnail”, true) ): ?>
” rel=”bookmark”><img style=”float:left;margin:0px 10px 0px 0px;” src=”<?php echo get_post_meta($post->ID, “thumbnail”, true); ?>” alt=”<?php the_title(); ?>” />
<?php else: ?>
” rel=”bookmark”><img style=”float:left;margin:0px 10px 0px 0px;” src=”<?php bloginfo(‘template_url’); ?>/images/thumbnail.png” alt=”<?php the_title(); ?>” />
<?php endif; ?>
<b>” rel=”bookmark”><?php the_title(); ?></b>
<?php the_content_limit(80, “”); ?><?php endwhile; ?>
<!–This is where you can specify the archive link for each section. Replace the # with the appropriate URL–> <b>Read More Posts From This Category</b>
What to change in the above html to display selected post ID (eg post ID 22,25) as sticky on the home page and move the newest posts to the sidebar ´latest posts´.
Any ideas? Thanks.
-
You’ll need to head over to http://wordpress.org/support/ because your blog isn’t hosted here at WordPress.com, I’m afraid.
- The topic ‘Revolution Lifestyle. How to show only sticky posts on homepage, not recent post’ is closed to new replies.