orderby=ID for posts doesn't work
-
hi,
I try to order some posts by ID but it doesn’t seem to work…
here is my code :
<?php if (have_posts()) : ?> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("category_name=concerts&orderby=ID&paged=$paged"); ?> <?php while (have_posts()) : the_post(); ?> <div class="post-sum" id="post-<?php if ( get_post_meta($post->ID, 'date', true) ) { ?><?php echo get_post_meta($post->ID, "date", $single = true); ?><?php } ?>">
I used a custom field to have specific IDs (reverse date) to order post by concert date and not post publication date…
here is the page : https://mascarel.eu/agenda/
what’s wrong with orderby=ID ???
until now it’s been working but each new post appears on top, ignoring the ID…please help !
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘orderby=ID for posts doesn't work’ is closed to new replies.