WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Show Private Product (1 post)

  1. pramodpandey
    Member
    Posted 1 year ago #

    Hello Friends,
    I am using woocommerce and i want to show private product after login user. I already done coding but its not showing product.
    My code is :-
    $args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'product_cat' => 'wholesalers', 'orderby' => 'rand','post_status'=>'private' )
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post(); ?>

    Plz anybody can help me on this ?

    http://wordpress.org/extend/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.