Custom Post Type not sorting by title
-
I am working with a custom post type for a listing of houses for this local non profit.
They want to be able to sort the listing of all houses by title but it is not workingI created a custom post: housing-unit-listing
then created a custom page where I use this code$customtypeargs = array(
‘post_type’=>’housing-unit-listing’,
‘orderby’ =>’title’,
‘order’ => ‘ASC’
);query_posts($customtypeargs);
It doesn’t seem to be sorting the posts by title, looks to be but there is some out of order.
Any help would be greatly appreciated.
- The topic ‘Custom Post Type not sorting by title’ is closed to new replies.