Forums

Show only one sticky post at the top of a list of posts (5 posts)

  1. newmediarts
    Member
    Posted 3 months ago #

    On my homepage I have a list of posts, and at the top I want to show only the most recent "sticky" post, followed by the rest of the posts. Is there a way to achieve this?

    * Bonus points for only using one query_posts()
    (I know how to do it using two query_posts(), but I'm looking for a less taxing solution).

  2. cais
    Member
    Posted 3 months ago #

    Perhaps I am not understanding this question correctly, but wouldn't you just simply check the "sticky" box for the post you want? or, are you looking to do multiple "sticky" posts and further additional non-sticky posts?

  3. newmediarts
    Member
    Posted 3 months ago #

    @cais: The trouble with that is once I check the "sticky" option for another post, I will have two sticky posts at the top of my list, and these will continue to grow as I continue to add new "sticky" posts. I only want 1 sticky post to be displayed.

    I think I see what you're getting at, but I'd prefer it if I didn't have to go and uncheck previously "sticky" posts when I want to add a new one.

  4. kmannics
    Member
    Posted 3 weeks ago #

    Un-check the "Stick this post to the front page" box on the post you no longer want stuck to the front page.

  5. zoltrifoot123
    Member
    Posted 3 weeks ago #

    Am I missing something? Where is the sticky post option found?
    Thanks.

Reply

You must log in to post.

About this Topic