WernerZ
Member
Posted 2 years ago #
When clicking a catagory name, you normally get a list of posts, orderd by date descending.
I was trying to define one post to always appear on top of its category list, lake a "header". A method would be to set the date to somet time in future, but this changes the state to "planned" and the post disappears until then.
Is there a Plug in or any other way to get this result?
Thank you!
I do something similar on my site http://bluegrassmiataclub.com/. See the Events->Event Talk page.
I used a custom field 'category-to-show' with a value of the category. Retrieve all posts in the category. Loop through displaying all that are 'sticky'. Rewind the posts. Loop through a second time displaying all that are not 'sticky'.
If you will send me an email with the About->Contact Us form from the site above, I will be happy to share the code with you.