WordPress.org

Ready to get started?Download WordPress

Forums

WP Bannerize
[resolved] Inser my banner into an echo (1 post)

  1. hugoatv
    Member
    Posted 1 year ago #

    Hi,

    i have change the code to of my header template cause i need ton insert banners only on category.php.

    the code :

    <?php
    if (is_home()) {
                   echo "HOMEPAGE";
    } elseif (is_category()) {
             //echo "CATEGORIES";
    // first echo doesn't works
    echo "<div id='banniereHeader'>[wp_bannerize('group=header&limit=1&random=1');]</div>";
    // 2nd echo doesn't works too
    echo "<div id='banniereHeader'>
    <?php wp_bannerize('group=header&limit=1&random=1');?></div>";
    } elseif (
    
    etc...
    ?>
    
    before i only used <div id='banniereHeader'>
    <?php wp_bannerize('group=header&limit=1&random=1');?></div> without "echo"

    so i don't know how to make this code compatible,

    thanks for your tips :)

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic