• jenbaers

    (@jenbaers)


    Does anyone know how to reorder the blog posts?

    This template I’m using doesn’t seem to have an ordering option.

    thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • vtxyzzy

    (@vtxyzzy)

    You probably won’t get any help unless you are using a freely available theme and post it’s name here so we can look at the code.

    Thread Starter jenbaers

    (@jenbaers)

    Here is the template thememe

    <href=”http://www.themememe.com/wpthemes/”&gt;

    vtxyzzy

    (@vtxyzzy)

    I am basing this on the ‘Aperio Prototype Theme’, index.php. You can use any of the orderby parameters shown in the Codex article Query Posts/Orcerby Parameters.

    For example to sort on title, change this:

    <?php while ( have_posts() ) : the_post() ?>

    to this:

    <?php
    global $query_string;
    query_posts($query_string . 'orderby=title');
    while ( have_posts() ) : the_post() ?>
    vtxyzzy

    (@vtxyzzy)

    OOPS – just realized I left out an ampersand. The code should be this:

    <?php
    global $query_string;
    query_posts($query_string . '&orderby=title');
    while ( have_posts() ) : the_post() ?>
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘REORDER BLOG POSTS’ is closed to new replies.