WP_Query’s WHERE updated, but Search Results are not updated
WP_Query’s WHERE updated, but Search Results are not updated
WP_Query’s WHERE updated, but Search Results are not updated
That is normal. Even if you use the core filters, for exmaple filter by month, that numbers doesn’t change. Also, you have made some mistakes in your queyr; for example, you should set the meta_key argumente in the where statement. Anyway, I tink it is much better to use meta_query argument for the main WP_Query … Read more
You can set your own custom query vars in a query, then use that value to set a class variable that you later read in the filter: class WPA69844_where { var $days; public function __construct(){ add_action( ‘parse_query’, array( $this, ‘parse_query’ ) ); } public function parse_query( $query ) { if( isset( $query->query_vars[‘my_days_var’] ) ): $this->days … Read more