Include plugin´s table in custom query
This was the solution: <?php /** * @package WordPress * @subpackage U-Design */ if (!defined(‘ABSPATH’)) exit; // Exit if accessed directly get_header(); include(‘scripts/search_excerpt/ylsy_search_excerpt.php’); $search = $_GET[‘s’]; $all_users = new WP_User_Query( array( ‘role’ => ‘dc_vendor’, ‘meta_query’ => array( ‘relation’ => ‘OR’, array( ‘key’ => ‘_vendor_country’, ‘value’ => $search, ‘compare’ => ‘=’ ), ) ) ); //echo … Read more