Forums

WP Bannerize
[resolved] How do I refer to keywords or tags? (5 posts)

  1. Chris Andersen
    Member
    Posted 4 months ago #

    Like this plugin very much.
    Also like, that the banners can show up in a widget after categories.

    I like my banners show up in the sidebar after keywords or tags of my post.
    How do I do that? Is there any shortcode?

    http://wordpress.org/extend/plugins/wp-bannerize/

  2. gfazioli
    Member
    Posted 4 months ago #

    Hi,
    with the current version only category can be choose in the widget panel.

    No shortcode is support for tags now.

    However, you can use php for filter via tag.
    For example, you can use:

    if( is_tag('foo') ) {
      if( function_exists('wp_bannerize') {
         wp_bannerize();
      }
    }

    In the next major release of "WP Bannerize" we will add several new feature and the banners will be as a post, in order to apply filters for category and tags.

    Stay tuned
    regards
    GF

  3. Chris Andersen
    Member
    Posted 4 months ago #

    Thx... sounds good. :-) Where do I have to put the code? Can I use a textwidget?

    ...and how does the code has to look like, if I want to put in more than one tag?

  4. gfazioli
    Member
    Posted 4 months ago #

    Hi, you can use a PHP Widget instead, or you can insert the code into sidebar.php file in your theme folder.

    To checking more tags, you could using:

    $tags = array('tags1', 'tags2', 'tags3');
    foreach($tags as $tag) {
      if( is_tag( $tag ) ) {
        if( function_exists('wp_bannerize') {
           wp_bannerize();
           break;
        }
      }
    }
  5. epistates
    Member
    Posted 3 months ago #

    Is this possible with pages too?

Reply

You must log in to post.

About this Plugin

About this Topic