I’m trying to create a page with all posts ordered by custom field called “top” which has a numeric value for each post.
I just copied my archive page to fresh Template so I can use it.
Currently, All I have in the loop is this and of course it doesn’t show any posts since I didn’t specify any categories or anything :
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>
- The topic ‘How to sort all posts by custom field numeric value?’ is closed to new replies.