• Hi all,

    I’m trying to create a custom feed which grabs the days posts and then puts them all in alphabetical order. I can get them in alphabetical order or I can get all the days posts. However once I filter by date and then try to order them by title nothing happens.

    The code I’m using is here:

    <?php
    $current_date = getdate();
    $args = array(
    	'posts_per_page'   	=> 90,
    	'year'     			=> $current_date["year"],
    	'monthnum' 		=> $current_date["mon"],
    	'day'				=> $current_date["mday"],
    	'orderby' 			=> 'title',
    	'order'    			=> 'ASC'
    
    );
    query_posts( $args );
    include('wp-includes/feed-rss2.php');
    ?>

    You can see a sample of the feed here:

    feed://members.maxwelllucas.com/blog/?feed=gw-news

    Any help would be much appreciated.

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘orderby title does nothing once filtered by date’ is closed to new replies.