Thanks for the prompt reply!
What I want to achive is to have the result from the three links below be sorted by ‘post_title’.
https://site/feed/podcast
https://site/feed/podcast/series-slug
https://site/podcast
I have found your example of using the ssp_episode_query_args filter but can not understand how to get the “order by ‘post_title'” into the $args parameter.
What about the $context parameter? Must it be used and what value should be used?
I use a wordpress plugin, Code Snippets, to activate the code.
//Hook into the ssp_episode_query_args to show episode for all public podcasts
add_filter( 'ssp_episode_query_args', 'ssp_episode_query_args_callback', 10, 2 );
function ssp_episode_query_args_callback( $args, $context ) {
if ( 'feed' !== $context ) {
return $args;
}
$args['post_status'] = array( 'publish', 'private' );
/* How to get the "order by 'post_title'" in the $args parameter? */
return $args;
}
Thanks