• I have the following code inside my header tempate

    <div id="board_post">
    		<h3>Featured Post</h3>
    <?php $recent = new WP_Query("showposts=1&orderby=rand"); while($recent->have_posts()) : $recent->the_post();?>
    		<h2><?php the_title_limited(70); ?></h2>
    		<p><?php the_content_limit(300); ?></p>
    		<p><a href="<?php the_permalink() ?>">Read More</a></p>
    <?php endwhile;?>
    	</div>

    Instead of having it display a random featured post I would like it to display a specific post ID, can you help me do this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding a featured post’ is closed to new replies.