Faceted search with WP-API data

The correct format for filters in the url is: ?filter[listing_area]=northwest&filter[listing_shooting_type]=clay You don’t need to create one ajax call per option, just one which combines the filters as set by the user

WP API post__not_in is not working

It is a bit more complicated to achieve. It needs too filters : one to allow the new REST parameter another to set the WP_Query argument add_filter( ‘rest_post_collection_params’, ‘collection_params’, null, 2 ); add_filter( ‘rest_post_query’, ‘query’, null, 2 ); function collection_params( array $query_params, \WP_Post_Type $post_type ): array { $query_params[‘post__not_in’] = [ ‘description’ => ‘Excludes posts.’, ‘type’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)