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

WordPress: code structure

I find that very easily my views become cluttered with logic, e.g. null checks, email validation, and retrieving values from the post object. How would you separate this out in WordPress? Is there any sort of MVC framework? There is no clear separation enforced by WordPress and there is extremely wide range of styles and … Read more