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.









Leave your response!