456 posts
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
  • United Kingdom
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
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
  • United Kingdom
godonholiday says

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

1564 posts Chris Robinson
  • United States
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Has been a member for 5-6 years
  • Author had a File in an Envato Bundle
  • Referred between 500 and 999 users
  • Author had a Free File of the Month
+5 more
contempoinc says

Take a look at this

456 posts
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
  • United Kingdom
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
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Poland
  • Referred between 10 and 49 users
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
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 5-6 years
  • Interviewed on the Envato Notes blog
  • Referred between 200 and 499 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 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