WordPress.org

Support

Support » How-To and Troubleshooting » How to give priority to posts in the loop

How to give priority to posts in the loop

  • 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]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to give priority to posts in the loop’ is closed to new replies.