'', 'perslide' => '5', ), $atts)); $idparthNer = 'parthner_id_'.rand(100, 999); $args = array( 'post_type' => 'publisher', 'posts_per_page' => $perpage, ); $loop = new WP_Query( $args); wp_reset_postdata(); ?>
have_posts()) {?>
have_posts()){ $loop ->the_post(); $publisherAvatar = get_post_meta(get_the_ID(), '_beautheme_type_image', TRUE); $publisherAvatar_ID = beau_get_attachment_id_from_url($publisherAvatar); $authorAvatar = wp_get_attachment_image( $publisherAvatar_ID, 'publisher-thumbnail' ); if ($authorAvatar == "") { $authorAvatar = ''; } ?>