How to Add Sticky Posts for Categories in WordPress

Like Tweet Pin it Share Share Email

Sticky posts assist you to add featured posts in WordPress and show them in another way in your web site’s homepage. Not too long ago one in all our customers requested us how they’ll add sticky posts in class pages. By including sticky posts on class pages you may show featured posts from that specific class. On this article, you’re going to get to learn to add sticky posts for classes in WordPress.

A sticky post on a category page

Very first thing you’ll want to do is set up and activate Class Sticky Submit. There aren’t any particular settings web page for the plugin. Merely create a brand new publish or edit an present one, and it is possible for you to to see a brand new ‘Class Sticky’ meta field within the publish edit space.

Making a post sticky in a category

Subsequent, merely select the class the place you need this publish to be displayed as a sticky publish and save your modifications.

If you wish to set one other sticky publish in that class, then you’ll have to uncheck class from the sooner sticky publish. It isn’t required for a publish to be filed in the identical class. For instance a publish filed in Bulletins class, may be made sticky within the Information class.

Every class can solely have one sticky publish at a given time. Additionally every publish can solely be sticky for one class.

By default the plugin provides a black border on prime and backside of the class sticky publish to tell apart it from different posts. You’ll be able to disable it by checking the Cover Sticky Submit Border checkbox. When this field will not be checked the plugin provides a category-sticky class to the class sticky publish. You’ll be able to override this in your little one theme’s stylesheet.

.category-sticky  
border:none;
background-color:#f5f5f5;
 

We hope this text helped you add sticky posts to your WordPress classes. For questions and suggestions you may go away us a remark or be part of us on Twitter.

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *