ordering in a tag.php page
-
Hello,
I have a problem getting my tag.php pages that hold tagged posts from my site to order the resulting contents.
I want the items to appear in alphabetical order, and although adding
<?php query_posts('posts_per_page=5&&category_name=clients&orderby=title&order=asc'); ?>
to my category(CLIENTS) page works (https://sitepreview.annscott.co.uk/clients), when I try to apply to my tag.php page it doesn’t display the posts in alphabetical order.
https://sitepreview.annscott.co.uk/tag/americasHere is the code I have in the tag.php page
<ul id="destinations"> <li class="header first"><?php wp_title(); ?></li> <?php while (have_posts()) : the_post(); ?> <li id="post-<?php the_ID(); ?>"> <div class="imagehold2"> <?php the_content(__('(more...)')); ?></div> <span class="desheader"><?php the_title(); ?></span> <?php the_excerpt(); ?> </li> <?php endwhile; ?> </ul>
I’ve tried several different things and can’t fix, any help would be greatly received.
jan
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘ordering in a tag.php page’ is closed to new replies.