Support » Plugin: WP Bannerize Pro » Specific Banners on Specific Pages

  • Resolved mbutrim

    (@mbutrim)


    I was using the old version of bannerize and used this code:

    <?php if(is_category( ’11’ ) || (is_single() && in_category(’11’))) {
    if(function_exists( ‘wp_bannerize’ ))
    wp_bannerize( ‘group=QOTW Leaderboard&categories=11&random=1&limit=1&before=<div>&after=</div>’ );
    } else {
    if(function_exists( ‘wp_bannerize’ ))
    wp_bannerize( ‘group=leaderboard&random=1&limit=1&before=<div>&after=</div>’ );
    }
    ?>

    to have my header banners display specific to the page/category. How do I convert that to your new code?

Viewing 1 replies (of 1 total)
  • Plugin Author gfazioli

    (@gfazioli)

    Hi there,
    first of all, you have to import your current banners in the new version. The code above is ok, you should replace the name of the function and the group.

    <?php if(is_category( ’11’ ) || (is_single() && in_category(’11’))) {
      if(function_exists( ‘wp_bannerize_pro’ ))
    wp_bannerize_pro( ['categories' => 'QOTW Leaderboard', 'orderby' => 'random', 'numbers' => 1 ] );
    } else {
      if(function_exists( ‘wp_bannerize’ ))
         wp_bannerize_pro( ['categories' => 'leaderboard', 'orderby' => 'random', 'numbers' => 1 ] );
    
    }
    • This reply was modified 1 year, 5 months ago by  gfazioli.
Viewing 1 replies (of 1 total)
  • The topic ‘Specific Banners on Specific Pages’ is closed to new replies.