Is it possible to set a post as a sticky item for a category in WP. I want to be able to click on the category link and then when I am taken to the category page (Where all the post are shown) Have one that stays on the top of the stack.
I want these for all of my categories? Is that possible?
Thanks,
Gavin
Is this not possible? I cant seem to find any information about it.
- Microlancer Beta Tester
- Sold between 250 000 and 1 000 000 dollars
- Author was Featured
- Item was Featured
- Has been a member for 4-5 years
- Author had a File in an Envato Bundle
- Referred between 200 and 499 users
- Author had a Free File of the Month
Take a look at this
Thanks, I have read that, and have struggled to implement it.
On the page that displays all the posts for a category I want a sticky post at that top (To kind of introduce the category).
If I just make that post a sticky, then it will stick to the top on my home page.
I am trying to change/play with the code in the codex to exclude all the other categories.
Then go through and do the same for each category.
Is this how you would go about this? or is my method wrong?
Thanks for the link.
If you are not planning to use tags anywhere else you could make use of Wordpress tagging system. Tag a post as sticky, than loop through the same query two times. For the first time use conditional statement to detect if post has tag “sticky”, if not than continue (ommit the post). Than re-loop, but this time ommit “sticky” posts and display only posts without “sticky” tag.
It’s just an idea, you know, try playing around with it 
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 4-5 years
- Interviewed on the Envato Notes blog
- Referred between 200 and 499 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
If this is to “To kind of introduce the category” then depending on the type of information you need to display you can easily use a category specific image and the category’s name and description as text.
Let me know if you need some example code
