Title: Adding a featured post
Last modified: August 19, 2016

---

# Adding a featured post

 *  [dpearce04](https://wordpress.org/support/users/dpearce04/)
 * (@dpearce04)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-a-featured-post-1/)
 * 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)

 *  Thread Starter [dpearce04](https://wordpress.org/support/users/dpearce04/)
 * (@dpearce04)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-a-featured-post-1/#post-1174072)
 * bump
 *  Thread Starter [dpearce04](https://wordpress.org/support/users/dpearce04/)
 * (@dpearce04)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-a-featured-post-1/#post-1174143)
 * bump

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [dpearce04](https://wordpress.org/support/users/dpearce04/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/adding-a-featured-post-1/#post-1174143)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
