How to give priority to posts in the loop
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]
- The topic ‘How to give priority to posts in the loop’ is closed to new replies.