New answers tagged date
Why not changing the loop? Inside the loop, just check to see if the custom-field or post-meta which you provided for the custom date is filled or not and show the post date or custom date according to the conditions. You can also have a special page for that category's timeline and a function for that specific page to make timeline using custom dates.
In addition to birgire's solution, as of WordPress 3.7, you can use Date parameters. Your arguments would look like this to filter posts from the last 7 days: $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'orderby' => 'date', 'order' => 'DESC', // Using the date_query to filter posts from last week ...
Needed to enter correct date format: Ymd or yyyy-mm-dd.
Top 50 recent answers are included