• We have a page with a list of vendors

    We add vendors manually and we don’t want them to show until their profile is complete.

    I see visibility option in the marketplace settings

    How to hide hidden vendors in the list here.

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

Viewing 1 replies (of 1 total)
  • Thread Starter wyamout

    (@wyamout)

    This is our code now

    	<div class="producers-sec">
    			<div class="row" id="verndors_row">
    				<?php $args = array(
        				'role'    => 'wcfm_vendor',
    					'orderby' => 'user_login',
    					'order'   => 'ASC',
    					'number'  => 8,
    	                //'offset' =>'0',
    					);
    $users = get_users( $args ); 
    				
    				foreach($users as $user){
    				$userID = $user->ID; ?>
    				<div class="col-md-3">
    <div class="producer-list">
    <img src="<?=get_avatar_url($userID)?>">
    	<h3 style="text-align: center"><a href="<?=get_site_url()?>/producer/?producer_id=<?=$userID?>"><?=get_user_meta($userID, 'store_name', true)?></a></h3>
    </div>
    </div>
    				<?php } ?>
    			</div>
    		</div>
    • This reply was modified 5 years, 3 months ago by wyamout.
Viewing 1 replies (of 1 total)

The topic ‘Page with Vendors’ is closed to new replies.