I’m having trouble with Related Product “tax_query” ‘terms’ value

How is ‘products_article_list’ meta returned from in $article_list? <?php $article_list = get_post_meta( get_the_ID(), products_article_list’, true);?> Is it a list of ids eg. ‘0601,0603’ or is it an array? tax_query terms argument requires an array. See https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters So if it’s stored as a list of ids all you need to do is explode the list and … Read more

How to show Custom Post Types under Taxonomy in a new WordPress page template?

I see a few things that may be causing problems. To answer your question though, this line: $loop = new WP_Query( array( ‘post_type’ => ‘subjects’, ‘posts_per_page’ => ‘3’ ) ); is performing a query on a post type called “subjects”. I think you want to be pulling your quizzes. So the line should be: $loop … Read more