Frontpage not sorted on ID
-
Hy there,
I am trying to sort the posts which are on the frontpage to sort them on ID from the highest number to the lowest number (DSC)
My index.php looks like this
?php get_header(); ?> <div id="left"> <?php wp_posts ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Read the rest of <?php the_title_attribute(); ?></a> <h6><a href="<?php the_permalink() ?>" rel="bookmark" title="Read the rest of <?php the_title_attribute(); ?>"><?php the_title(); ?></a> </h6> </div> <?php endwhile; ?> <div style="padding:10px;"><!-- page navi --> <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?> <!-- page navi end --></div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
In my MYSQL everything is the wp_posts is sorted on ID. Put on my frontpage there everything is still sorted on date I gues and not on ID.
Cant figure out what I’m doing wrong, hope someone from the wordpress community can help me out Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Frontpage not sorted on ID’ is closed to new replies.