Home » How To

How Can You Stick a Post to The Top of the Home Page?

How Can You Stick a Post to The Top of the Home Page?

In the past, adding a post (or any other text that ’stuck’ to the top of a WordPress home page) was annoying – the easiest solution in PHP was this:

<?php if (is_home()) { ?>
HTML text shown ONLY on home page...
<?php } ?> 

However, now you can make a POST stick to the home page, and remain on top until you remove it. Go to that post’s edit section, and near the Publish button is the Visibility setting. Click on the Edit link there, and check ‘Stick this post to the front page‘.

Save everything, and now your post ’sticks’ – it’s just that easy now with WordPress.

Digg this! Add to del.icio.us! Stumble this! Add to Techorati! Share on Facebook! Seed Newsvine! Reddit! Add to Yahoo!

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.