Quantcast
Channel: How to reorder and display a feed to be chronological? - WordPress Development Stack Exchange
Browsing all 7 articles
Browse latest View live

Answer by solepixel for How to reorder and display a feed to be chronological?

Not sure if anyone else is dealing with this or if the answer in this post is outdated, but this is the method I used which was drastically less duplicated code:add_action('wp_feed_options',...

View Article



Answer by Joshua Abenazer for How to reorder and display a feed to be...

This should do the trick. Put the following code in your functions.php and then check out the RSS Widget. It will have an option to reverse the order of the feeds./** * RSS widget class */class...

View Article

Answer by user10617 for How to reorder and display a feed to be chronological?

Adding the following code to your theme's functions.php file should do the trick:function feedFilter($query) { if ($query->is_feed) { $query->set('order','ASC'); $query->set('orderby','date');...

View Article

Answer by kovshenin for How to reorder and display a feed to be chronological?

First place you should look at is the default-widgets.php file in the includes folder and the WP_Widget_RSS class which uses the wp_widget_rss_output function to render the RSS output. The function...

View Article

Answer by Norcross for How to reorder and display a feed to be chronological?

setting up a CPT would still be preferred, so you could add a meta field for start date. each post type would have its own RSS feed independent of posts.

View Article


Answer by Chris Cox for How to reorder and display a feed to be chronological?

Easiest way would be replacing the core RSS widget with a custom job that reverses the feed items before display. Something like:<?php foreach (array_reverse($feed->get_items()) as $item): ?>

View Article

How to reorder and display a feed to be chronological?

I have a feed from an events calendar that once put in the WordPress RSS widget displays the feed items in reverse chronological order. So the events that are farthest in the future display first, and...

View Article
Browsing all 7 articles
Browse latest View live




Latest Images