dooge
dooge

Reputation: 51

Pin/sticky blog post to top of Wordpress page (not home page)

I am able to sticky my blog posts with the edit page tool but it will only sticky to the home page, which I do not want.

Is there a way to sticky a post to always be on top of a page other than the homepage? Like a blog page.

Thanks in advance.

Upvotes: 0

Views: 90

Answers (2)

Greg Bulmash
Greg Bulmash

Reputation: 1957

For those who end up finding this in their search like I did. There are a couple of plugins recommended in articles, all technically out of date or abandoned.

The "Sticky Posts Switch" plugin that was newest (but still over 2 years old) had an option in the plugin config to not show a post on the homepage, but if you made it "category" sticky, it showed the same post at the top of all category pages, regardless of whether it was in that category.

"Category Sticky Posts" mostly worked for me. Despite being years out of date, it worked with WordPress 6.71.

It adds a settings box to the post editor that lets you select a category for it to be sticky on. It will be the top post on that category page only. Downside of the plugin is that it only takes the most recent post to be made sticky for that category. If you select three posts to be sticky for a category, only the most chronologically recent one will appear at the top and the other two will go back to the chronological order.

Because it's so old, I can't recommend this for production use, but it is GPLv2 licensed, so you could audit the code and even extend it to handle your use case.

Upvotes: 0

Tudor
Tudor

Reputation: 318

Try searching for a plugin or set the post's date way in the future (ex: 2028) so it will be the "newest post".

Upvotes: -1

Related Questions