• Hello, ive a question

    Its possible text the code for place manually the badge in other page? for example in wp show posts plugin, if u go to my website (pulserasamano.com) the content of homepage is using wp show posts and i need to show the badges there… its possible? im looking for in code but i dont know if its possible…

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Kuassar

    (@kuassar)

    Hello, some notice?

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    The products in your homepage are added by a WooCommerce shortcode or a custom code?

    I will just reply on this question instead open new one ??

    He like me probably want to customize everything. So please add function that we can insert manually everywhere we want badge with php.

    Thank you

    Here is function how to insert this anywhere you like

    global $post;
    $product_id = $post->ID;
    $bm_meta = get_post_meta( $product_id, ‘_yith_wcbm_product_meta’, true );
    $id_badge = ( isset( $bm_meta[ ‘id_badge’ ] ) ) ? $bm_meta[ ‘id_badge’ ] : ”;
    $badge_container = yith_wcbm_get_badges_premium( $id_badge, $product_id );
    $izlaz = $badge_container;

    where $izlaz will output badge anywhere you like. (Premium users only) – remove word premium for standard users.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Place manually the badge?’ is closed to new replies.