Created
April 10, 2017 14:36
-
-
Save andrewlimaza/799a64b6eb67d1c2a4128cee06e848f9 to your computer and use it in GitHub Desktop.
Seriously Simple Podcasting adjust 'latest episodes' widget query.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add the function below to your child theme's functions.php. This will adjust the 'latest episodes' widget. | |
*/ | |
function change_ssp_widget_recent( $args ){ | |
$args[ 'orderby' ] = 'title'; //change this value to what value you would like to order most recent episodes widgets with. | |
$args[ 'order' ] = 'ASC'; | |
return $args; | |
} | |
add_filter( 'ssp_widget_recent_episodes_args', 'change_ssp_widget_recent' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment