WordPress.org

Ready to get started?Download WordPress

Forums

Make a post sticky in a category but not on the homepage? (2 posts)

  1. The Night Fox
    Member
    Posted 3 years ago #

    Can anyone tell me how I could go about making sticky posts in each of my categories?

    I want to have a post from category a stckied in category a, a post from category b stickied in category b, but want neither stickied on the homepage.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    You would need a custom query in both your category and front page template files - the former to grab sticky posts and the latter to ignore them.
    http://codex.wordpress.org/Function_Reference/query_posts
    http://codex.wordpress.org/Function_Reference/WP_Query

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.