Title: [Plugin: WP Bannerize] PHP Code don&#039;t work
Last modified: August 20, 2016

---

# [Plugin: WP Bannerize] PHP Code don't work

 *  Resolved [infodes](https://wordpress.org/support/users/infodes/)
 * (@infodes)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-bannerize-php-code-dont-work/)
 * After upgrading WP Bannerize version 3.0.1, PHP function for WP Bannerize stop
   to work. The function is in header.php to show banner group before header logo.
   Till previous version, this work perfectly, but now banner group never show. 
   I change to new PHP code:
 *     ```
       <?php if(function_exists( 'wp_bannerize' ))
       	wp_bannerize( 'group=MYGROUP' ); ?>
       ```
   
 * But same results.
    Help would be very, very, appreciated… Thanks in advance.
 * [http://wordpress.org/extend/plugins/wp-bannerize/](http://wordpress.org/extend/plugins/wp-bannerize/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [gaspar](https://wordpress.org/support/users/gaspar/)
 * (@gaspar)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-bannerize-php-code-dont-work/#post-2341814)
 * I inspected this new code. It seems developer forget to print out the code 🙁
   
   @wpBannerizeFunctions.php line 21 i just added echo() command: echo $wpBannerizeFrontend-
   >bannerize( $args );
 * i got it work again.. hope that helps!
 *  Thread Starter [infodes](https://wordpress.org/support/users/infodes/)
 * (@infodes)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-bannerize-php-code-dont-work/#post-2341819)
 * Sorry, not found at wpBannerizeFrontend.php, line 21. In 3.0.1 version, line 
   21 at wpBannerizeFrontend.php shows:
 * `wp_enqueue_script('wp_bannerize_frontend_js', $this->uri . kWPBannerizeJavascriptFrontend,`
 * Any news idea?
    Thanks.
 *  [gaspar](https://wordpress.org/support/users/gaspar/)
 * (@gaspar)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-bannerize-php-code-dont-work/#post-2341821)
 * I typed wrong filename before, sorry!
    Correct file is: wpBannerizeFunctions.
   php Corrected my previous post also..
 *  Thread Starter [infodes](https://wordpress.org/support/users/infodes/)
 * (@infodes)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-bannerize-php-code-dont-work/#post-2341824)
 * Great, gaspar!!! Now banner is visible, but if you have a banner group (like 
   me, two banners) in radom mode, plugin displays the two banners but no alternate
   both banners in same position, like with old plugin version.
 * Any idea?
    Thanks.
 *  Thread Starter [infodes](https://wordpress.org/support/users/infodes/)
 * (@infodes)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-bannerize-php-code-dont-work/#post-2341827)
 * Sorry… Correct code for alternate banners in same position (almost for me) is:
 * `<center><?php wp_bannerize('group=hella&container_before=&container_after=&before
   =&after=&limit=1&random=1'); ?></center>`
 * Now all work correctly.
    Thanks again gaspar. Great job! Regards.
 *  [gaspar](https://wordpress.org/support/users/gaspar/)
 * (@gaspar)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-bannerize-php-code-dont-work/#post-2341828)
 * Great! You can mark this topic resolved.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: WP Bannerize] PHP Code don't work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-bannerize_a29ebf.svg)
 * [WP Bannerize](https://wordpress.org/plugins/wp-bannerize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-bannerize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-bannerize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-bannerize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-bannerize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-bannerize/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [gaspar](https://wordpress.org/support/users/gaspar/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-bannerize-php-code-dont-work/#post-2341828)
 * Status: resolved