sort page isn't working
-
Hi,
I made a custom query to show the thubmnail of pages with a specific meta_value ordred by a specific order.
But my script does not seems to be working..
The code
$args = array( 'post_type' => 'page', 'post_parent' => '8', 'sort_column' => 'ID', 'meta_key' => 'concours_ou_promotion', 'meta_value' => 'promotion', 'sort_order' => 'ASC' ); query_posts($args); // The Loop while ( have_posts() ) : the_post(); ?> <a href="#"><?php the_post_thumbnail( array(564,255) ); ?></a> <? endwhile; // Reset Query wp_reset_query();
What I want to do
I would like to order these post by creation date or post ID (same as creation date). But whatever I do, it’s always the last page that is visible the first.Can some one help me fix this script?
Can anywone help me?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘sort page isn't working’ is closed to new replies.