Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1415763

    I have a specialized “blog” on my website made up of podcasts. https://lovefirst.net/best-minds-podcast/ I would like these displayed first to last (oldest to newest), instead of the normal method of newest first. How can I do this?

    Thanks for your help

    #1415792

    Hi macjeffff,

    Please add this code in functions.php of your child theme, if you don’t have a child theme then you can use the plugin called WPCode to insert this code snippet:

    add_filter('avia_blog_post_query', 'custom_enfold_blog_post_query');
    
    function custom_enfold_blog_post_query( $query ) {
    	if ( is_page( 6791 ) ) {
    		$query['orderby'] = 'date';
    		$query['order'] = 'ASC';
    	}
    	
    	return $query;
    }

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.