Skip to content

Instantly share code, notes, and snippets.

@meloniq
Created February 21, 2017 19:40
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 meloniq/7f26331335d1e01d97f8d7e2746af66d to your computer and use it in GitHub Desktop.
Save meloniq/7f26331335d1e01d97f8d7e2746af66d to your computer and use it in GitHub Desktop.
[ClassiPress] Change quantity of featured ads displayed in slider
<?php
/**
* Change quantity of featured ads displayed in slider.
*
* @param array $args
*
* @return array
*/
function childtheme_gimme_more_featured_ads( $args ) {
// default value is 15
$args['posts_per_page'] = 23;
return $args;
}
add_filter( 'cp_featured_slider_args', 'childtheme_gimme_more_featured_ads', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment