The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →WordPress’s built-in Sticky setting pins a post to the front page of posts; it does not pin a post only inside a category archive. To feature posts within a specific category, use a category-sticky plugin or customize the query that renders that category archive.
What WordPress’s Sticky setting actually does
In the block editor, open a post, expand the Post settings sidebar, and enable Sticky. WordPress describes this as placing the post at the top of the posts front page. In the Classic Editor, the equivalent control is Visibility > Stick this post to the front page.
That setting has two important limits:
- It targets the site’s posts front page, not one selected category archive.
- It applies to the built-in
postpost type, not custom post types.
Categories and sticky status are separate. A post can belong to several categories, while WordPress stores sticky status as a list of post IDs. Assigning a category therefore does not create category-specific ordering.
Choose a category-specific method
Use a plugin when you need a no-code solution
Category-sticky plugins add controls for making a post prominent within an individual category archive. In the WordPress.org plugin directory, search for terms such as category sticky post or sticky posts for individual category archives.
Recommended Free Tools
Do not assume that a directory result is suitable for your site. Before activating a plugin, inspect its live listing for:
- the date of its last update;
- the WordPress versions it has been tested with;
- recent support activity and unresolved reports;
- compatibility with your theme, page builder and caching setup; and
- the plugin’s behavior when a post belongs to multiple categories.
Install and test it on a staging site first. Confirm that it changes the intended category archive, does not duplicate posts across pages, and still behaves correctly after updating WordPress, the theme or the plugin.
Customize the category archive query for maximum control
A developer can alter the query used by a category archive so that selected sticky post IDs are included and ordered first. WordPress exposes those IDs through get_option( 'sticky_posts' ); category filtering and sticky ordering are handled through WP_Query arguments such as cat, post__in and ignore_sticky_posts.
The following is an illustration of the query ingredients, not a universal copy-and-paste replacement. The correct hook or template depends on whether the site uses the standard theme loop, a custom archive, a block theme or a page-builder query.
Quick Recap
Best Value
Rank #4
Rank #3
Rank #2
#1 Best Overall
$sticky_ids = get_option( 'sticky_posts', array() );
$query = new WP_Query( array(
'cat' => $category_id,
'post__in' => $sticky_ids,
'orderby' => 'post__in',
'ignore_sticky_posts' => true,
) );
This pattern selects posts that are both sticky and in the chosen category, then follows the order supplied in post__in. A production implementation must also decide how to handle non-sticky posts, pagination, empty sticky lists, duplicates and posts assigned to several categories. In many themes, it is safer to modify the existing archive query than to create a second loop that can conflict with the theme’s pagination.
Keep ordinary sticky behavior out of a custom loop when necessary
If a custom category loop should not automatically move all globally sticky posts to the top, set ignore_sticky_posts to true and implement the desired category ordering explicitly. This prevents the default sticky behavior from fighting your custom order.
How to implement and test the result
- Back up the site and use staging. Query changes can affect archive output and pagination.
- Identify the renderer. Check whether the category page comes from the theme’s archive template, a block query loop, a page-builder widget or custom code.
- Choose the method. Install a maintained category-sticky plugin for no-code control, or change the archive query when you need precise ordering and have theme-development support.
- Select the category and post IDs. Ensure the selected post is actually assigned to the target category; otherwise a post-ID-only query can return no result.
- Test as a logged-out visitor. Open the real category URL and confirm that the intended post appears in the intended position.
- Check every archive page. Look for the featured post being repeated on page two, regular posts disappearing, broken page counts or an empty result when no sticky post is assigned.
- Repeat for multi-category posts. Decide whether a post should be featured in every category it belongs to or only in specifically configured categories.
Which option fits your site?
| Method | Target | Theme code required | Main considerations |
|---|---|---|---|
| Built-in Sticky setting | Posts front page | No | Works for the built-in post type; does not provide category-only pinning. |
| Category-sticky plugin | Selected category archives | No, after installation | Check maintenance, tested WordPress version, support and theme/page-builder compatibility. |
| Custom archive query | One or more category archives | Yes | Offers control over ordering and pagination, but requires testing in the site’s actual archive implementation. |
Common reasons category sticky posts do not appear
- The post is not assigned to the category. The sticky ID alone does not override category filtering.
- The page is not using the default archive query. A builder or custom loop may ignore the code or plugin behavior expected by the theme.
- Sticky ordering is being suppressed. A query using
ignore_sticky_postsmay intentionally prevent automatic sticky placement. - Pagination logic was not adjusted. A separate featured loop can create duplicates or incorrect page counts.
- Cache is serving an older archive. Purge page, object and CDN caches after changing the assignment or query.
The Bottom Line
For a category-only featured post, the built-in WordPress Sticky checkbox is not enough. Use a maintained category-sticky plugin for a no-code approach, or customize the category archive query when you need full control over ordering and pagination.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errors

