How to sort all posts by custom field numeric value? (1 post)

  1. eggroup
    Posted 4 years ago #


    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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic