WordPress.org

Support

Support » Plugins and Hacks » WP Bannerize » [Resolved] [Plugin: WP Bannerize] How do I refer to keywords or tags?

[Resolved] [Plugin: WP Bannerize] How do I refer to keywords or tags?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author gfazioli

    @gfazioli

    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

    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?

    Plugin Author gfazioli

    @gfazioli

    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;
        }
      }
    }

    Is this possible with pages too?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: WP Bannerize] How do I refer to keywords or tags?’ is closed to new replies.
Skip to toolbar