• I have an RSS feed configured to show the 20 most recently modified posts, and would like it to also include posts published during that period. However, these posts are not included in the query by default, as even though they may have been recently published, they do not appear as recently modified.

    Is there a way to modify a query to order by modified/published date while also giving both the same weight?

Viewing 1 replies (of 1 total)
  • Thread Starter Davis Shaver

    (@davisshaver)

    Btw, here is what my code looks like currently.

    $args = array(
    	'orderby'=> 'modified',
    	'order' => 'DESC',
    	'showposts' => '20',
    	'post_type' => 'post',
    	'post_status' => 'publish'
    );
    $posts = query_posts($args);

Viewing 1 replies (of 1 total)
  • The topic ‘Published and updated posts in same feed’ is closed to new replies.