Helpme array
-
I am using a post as taxonomy and I want to show in this query only the post assigned in said taxonomy, how can I limit it to show the value assigned in the post I am visiting?
$terms = get_the_terms( $post->ID , ‘tarifas’, ‘string’);
$second_query = new WP_Query( array(
‘post_type’ => ‘tarifas’,
‘posts_per_page’ => 1,) );
The topic ‘Helpme array’ is closed to new replies.