RSS FEED with order and orderby
-
Hi
orderby = meta_value_num is not working, Only Order = ASC or DESC is working. I need to get post from third party website using(RSS FEED)both order and orderby.
i have done something like this but not working.<?php $rss = new DOMDocument(); $rss->load('https://www.mysite.com.au/blog/?feed=rss2&order=ASC&orderby=meta_value_num'; ?>
Also i have tried like this:
function reverseorder($query_string) { return query_posts( $query_string . '&order=ASC&orderby=meta_value_num'); } add_action( 'rss2_head', 'reverseorder' );
Thank you for your support!
Thanks
Ahir
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘RSS FEED with order and orderby’ is closed to new replies.