Support » Plugin: WP Bannerize Pro » Does not display image

  • Resolved wilkergaudencio

    (@wilkergaudencio)


    I am not able to display the banner in the new plugin..

    i’m using code in my “sidebar”:

    <?php
    $idsstrings = coauthors_ids(“,”, “,”, null, null, false);
    $authorsids = explode(“,”, $idsstrings);

    foreach($authorsids as $authorid)
    {
    $authorobras = get_user_meta($authorid, “user_obras”, true);
    ?>

    <div class=”publicidade-autor” style=”margin-top:15px !important”>
    <?php
    // Display a single banner
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘id’ => ‘156’ ) );
    }

    // Display a more single banner
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘id’ => ‘156,157,158’ ) );
    }

    // Display a more single banner
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘id’ => array( 156, 157, 158 ) ) );
    }

    // Display a more single banner by mixed id and slug
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘id’ => array( 156, ‘my-banner-slug’, 158 ) ) );
    }

    // Display all banners from banner category “sidebar” in random order
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘orderby’ => ‘random’, ‘categories’ => ‘sidebar’ ) );
    }

    // Display one banner from banner category “sidebar” in random order
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘orderby’ => ‘random’, ‘numbers’ => 1, ‘categories’ => ‘sidebar’ ) );
    }

    // Display banners from banner category “sidebar” and post categories news and events
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘category’ => ‘sidebar’, ‘post_categories’ => ‘news,events’ ) );
    }

    // Or… as array of slug
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘categories’ => ‘sidebar’, ‘post_categories’ => array( ‘news’, ‘events’ ) ) );
    }

    // Or… as array of Title
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘categories’ => ‘sidebar’, ‘post_categories’ => array( ‘News’, ‘Events’ ) ) );
    }

    // Or… as array of ids
    if( function_exists( ‘wp_bannerize_pro’ ) ) {
    wp_bannerize_pro( array( ‘categories’ => ‘sidebar’, ‘post_categories’ => array( 24, 67 ) ) );
    }
    ?>
    </div>

    In the old plugin I used:

    <div class=”publicidade-autor” style=”margin-top:15px !important”>
    <?php
    $author = ‘group=’.get_the_author_meta(‘nickname’, $authorid);
    wp_bannerize( $author );
    ?>
    </div>

    I add my banners through Widgets..

    i’m using authorid for banners in the banners autor

    example:

    genjuridico.gaudit.com.br/2016/03/02/adeus-a-liberdade-individual/

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

    (@gfazioli)

    @@wilkergaudencio anyway, can you also explain what you wish to do? I don’t understand the relationship between Banner and author id.

    Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    @gfazioli I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    http://codex.wordpress.org/Forum_Welcome#The_Bad_Stuff

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us asking you to repeatedly stop before escalating up to the plugins team.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does not display image’ is closed to new replies.