Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Created April 10, 2017 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewlimaza/799a64b6eb67d1c2a4128cee06e848f9 to your computer and use it in GitHub Desktop.
Save andrewlimaza/799a64b6eb67d1c2a4128cee06e848f9 to your computer and use it in GitHub Desktop.
Seriously Simple Podcasting adjust 'latest episodes' widget query.
<?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