456 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
godonholiday says

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

456 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
godonholiday says

Is this not possible? I cant seem to find any information about it.

1599 posts Chris Robinson
  • Located in United States
  • Has sold $500,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
contempoinc says

Take a look at this

456 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
godonholiday says

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.

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says

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 :)

204 posts Bold WordPress Theme Development
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Interviewed on an Envato blog
+6 more
srhnbr says

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

by
by
by
by
by
by