List posts with slug title

If by “slug title” you mean a taxonomy (e.g. product category), then have a look at the code posted on the accepted answer on Display All Products by Category with WooCommerce It should give you an idea (or even the complete solution) how to get your posts listed.

Show one post of each custom taxonomy

assuming all your constants are correct, it should just look like this $terms = get_terms(array(‘taxonomy’ => APP_TAX_STORE)); $tax = get_the_terms($id, ‘coupon_category’); foreach ($terms as $term) { $args = array( ‘post_type’ => APP_POST_TYPE, ‘posts_per_page’ => ‘1’, APP_TAX_TAG => ‘gutschein’, ‘orderby’ => array( ‘meta_value_num’ => ‘DESC’, ‘post_date’ => ‘DESC’, ), ‘tax_query’ => array( ‘relation’ => ‘AND’, array( … Read more

Live search by custom tag

‘post_type’ => ‘custom_type’ is a reference to your post type. You need to change custom_type to the actual post type that you created / registered. So, if your post type was my_cool_dregs then the line would be: ‘post_type’ => ‘my_cool_dregs’ The same holds true with ‘taxonomy’=>’custom_tags’ You need use the actual taxonomy name that you … Read more

Taxonomie cpt with acf

You would want to use the value of the ACF Taxonomy Field as an additional argument of your WP_Query. So in ‘single-formation.php’ replace your WP_Query with something like this: $term_ids = get_field(‘taxonomy_field_name’); // make sure the return value of your ACF Taxonomy field is set to “Term ID” $args = array( ‘post_type’ => ‘formation’, ‘tax_query’ … Read more