Add a single featured post to all pages?

Within wp-admin, we need the ability to select a single post as the featured post. This featured post will be displayed on all pages. I know I can make a post “sticky” but we would like to have only one item featured — and using “sticky” could mean that multiple items are featured.

Is there a way to have wordpress un-check all other “sticky” values when a content editor selects another as “sticky”?

If not, is there a better approach to this, like creating a widget that allows the content editor to select a single post?

Thank you.

1 Answer
1

It sounds like the simplest and most flexible approach is to find a plugin that creates a widget for you that you can configure to display any post of your choosing in whatever fashion you prefer. Then you put that widget in the sidebar that appears on all of your pages. I would not develop this custom because it is an obvious problem that others have solved many times over.

In other words, there are plugins out there that do just this. For example, I found a couple of plugins in a Google search: Ultimate Posts Widget and Flexible Posts Widget. Many robust theme frameworks also include this feature, such as Themify, just to name one.

A second approach in the same vein is to install the Display Posts Shortcode plugin, and then put one of their configurable shortcodes into a Text widget that resides in your sidebar.

Leave a Comment