How to give priority to posts in the loop (3 posts)

  1. gicrom
    Posted 5 years ago #

    hi there,
    I would like to assign a value (custom field name is 'priority') from 1 to 9 to several posts (NOT to all posts) and to show them in DESC order in the loop with all other (without priority) posts. This could be useful for me to order the results giving more visibility (first positions) to posts I'm interested in.
    I hope my english is clear. Thanks in advance for your help.
    Below part of my index.php

    [code moderated per forum rules - please follow http://codex.wordpress.org/Forum_Welcome#Posting_Code for posting code]

  2. gicrom
    Posted 5 years ago #

  3. gicrom
    Posted 5 years ago #

    Any thoughts anybody?

    I found this http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query but this function return only post with a custom field ('priority') setted... and no all other posts. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic