Show more than 10 advertisements (increase ads limit) in View

With Content Views Pro, you can show advertisements between posts in View output easily. Click here to read more about this feature.

By default, only 10 advertisements are available. To show more advertisements, please add this code to file functions.php of your active theme:

// Content Views Pro - Increase number of ads to show
add_filter( 'pt_cv_ads_slots', 'cvp_theme_ads_slots', 100, 1 );
function cvp_theme_ads_slots( $args ) {
    $args = 20;
    return $args;

Thank you,

Scroll to Top