WP Bannerize
[resolved] Shortcodes for WP Bannerize (5 posts)

  1. Bryan Hoffman
    Posted 5 years ago #

    First off, great plugin. It's simple and intuitive.

    Are there any plans on adding shortcode functionality to WP Bannerize? This would be great to be able to add to specific pages and posts.

    ~ Bryan

  2. gfazioli
    Plugin Author

    Posted 5 years ago #

    Hi Bryan,
    great idea. Thanks for the suggestion. I will plan this improvement in next release.


  3. Landish
    Posted 5 years ago #

    I was trying to create shortcode by myself, but i've got a problem.

    in my theme's functions.php file i wrote this code

    function banner() {
    	return wp_bannerize('limit=1&before=&after=&container_before=<p style="text-align:center">&container_after=</p>&random=1');
    add_shortcode('banner', 'banner');

    and when i put this shortcode [banner] in my posts, it appears, but above the content.
    And what I need, is to be appeared in exactly that place, where i put this code.
    So can you guys help me with that? : )

  4. gfazioli
    Plugin Author

    Posted 5 years ago #

    @Landish: Hi, in the next release (2.6.0) I introduced the new shortcode for WP Bannerize:

    [wp-bannerize limit="1" random="1"]

    How you can see, It possible using the same parameters like php function style:

    <?php wp_bannerize("limit=1&random=1) ?>

    Thank you very much for suggested


  5. vantee
    Posted 5 years ago #

    Hi, do yo know how to fix the shortcode banner so that it shows exactly where you put the code? Right now it is always showing at the top of the content.

    Many thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Bannerize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic