reverse order
URL to the page in question:
-
I would like for the recent podcasts widget to work differently. Can the posts appear in reverse order, instead?
I would like the oldest ones at the top.
You can reverse the order. Here’s how:
- Go to the appearance section and select edit to open up the theme editor.
- From the list of files on your right, choose widget-podcast.php and look for this spot:
$podcast_query = new WP_Query( "post_type=podcast&posts_per_page=" . $instance['number_podcasts'] );
- Replace that with this:
$podcast_query = new WP_Query( "post_type=podcast&order=ASC&posts_per_page=" . $instance['number_podcasts'] );
- Save your changes.
That will set the order to be reverse chronological. If you need anything else, just let me know,
Bill
Thanks, bill. Wonderful as always.
- The topic ‘reverse order’ is closed to new replies.