WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Bryan Hoffman
    Member
    Posted 3 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.

    Thanks,
    ~ Bryan

  2. gfazioli
    Member
    Plugin Author

    Posted 3 years ago #

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

    regards
    GF

  3. Landish
    Member
    Posted 3 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
    Member
    Plugin Author

    Posted 3 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

    regards
    GF

  5. vantee
    Member
    Posted 3 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!
    VT

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic