Does not display image
-
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/
- The topic ‘Does not display image’ is closed to new replies.