Title: Sorting Posts in Custom Theme
Last modified: August 19, 2016

---

# Sorting Posts in Custom Theme

 *  [DevKev](https://wordpress.org/support/users/kevinorin/)
 * (@kevinorin)
 * [16 years ago](https://wordpress.org/support/topic/sorting-posts-in-custom-theme/)
 * I am having problem sorting posts on a Client custom theme I made.
 * Site: [http://www.motoringstyle.com/vehicles/aston-martin/](http://www.motoringstyle.com/vehicles/aston-martin/)
 * All Manufacturers pages are showing the posts in alphabetical order instead of“
   Most Recently added” first.
 * The coding in the area of the query is below. Any advice would be appreciated:
 *     ```
       <div class="manuf_related">
       <!--	<h2>Explore content for <?php //the_title(); ?></h2> -->
       		<div class="manuf_related_model_reviews">
       			<h3>Models:</h3>
       			<?php wp_list_pages('title_li=&child_of=' .$post->ID. ''); ?>
       		</div>
       <!-- RELATED POSTS CODE -->
   
       		<div class="manuf_related_posts">
       			<?php $posttag = get_the_title();?>
       <div class="manuf_f_cont">
       ```
   

The topic ‘Sorting Posts in Custom Theme’ is closed to new replies.

## Tags

 * [alphabetical](https://wordpress.org/support/topic-tag/alphabetical/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [recent](https://wordpress.org/support/topic-tag/recent/)
 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [DevKev](https://wordpress.org/support/users/kevinorin/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/sorting-posts-in-custom-theme/#post-1459435)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
