Dropdown Select Post Filter

You can use tax_query for Taxonomy Parameters for your WP_Query. $term_id = $_REQUEST [‘soins-taxonomy’]; // or use $_POST or $_GET as the case may be $args = array( ‘order’ => ‘ASC’, ‘post_type’ => ‘etablissements’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘location’, ‘field’ => ‘term_id’, ‘terms’ => $term_id, ), ‘posts_per_page’ => 9, ‘paged’ => $ourCurrentPage ); … Read more

How to distinguish pages created by woocommerce?

You can use conditional tags or function wc_get_page_id(‘page_name’), where page_name can be: ‘myaccount‘, ‘shop‘, ‘cart‘, ‘checkout‘, etc. For example: Using is_cart() you can check whether the current page is a cart page. Using wc_get_page_id( ‘cart’ ); you will receive ID of cart page. Which way is more suitable for your code you have to decide … Read more