In this short guide, I’m going to show you how to use a plugin to pin a post to the top of a category page on a WordPress blog.
By default, posts in the archives appear in reverse chronological order (from newest to oldest). Which is fine most of the time – you want your readers to see the latest content first. But, in some situations, it makes sense to have an older post appear at the top of the category instead of the latest one.
For example, my WordPress plugins category uses this method. The first post I wrote for that section answers the question “What is a WordPress plugin?“. In default mode, this post will always be the last one in the archive because it was published first. As it’s an explainer article, it makes sense to have it show up at the top of the category.
In WordPress, the term for this type of post is “sticky”.
Keep reading for the setup instructions.
How to set up the Category Sticky Post WordPress plugin
Download and install the plugin in the usual way, then navigate to the post you want to make sticky.
You should see a new widget called Category Sticky in the right sidebar.
From the drop-down menu, choose the category you want to use. In my case, I want to add the sticky post to the WordPress Plugins category.
Notice the option to “Hide Sticky Post Border?“. Leave it unticked for now.
Hit Update and check out the Category page to make sure the sticky post is at the top.
This is what my sticky post looks like with the border (it doesn’t look terrible and it doesn’t look great either…).
If you like it with the border you can crack on with something else. If you don’t like the border, go back and change it by ticking the box next to “Hide Sticky Post Border?”.
Here’s my sticky post again, this time without the border.
That’s all you have to do add a sticky post to a WordPress category.
I hope you’ve found this short tutorial useful.
If you’re new to WordPress and would like to learn more, check out our WordPress tutorials for beginners.