‘attractions’, // Replace ‘attractions’ with your actual custom post type name
‘posts_per_page’ => -1, // Display all posts of this type
‘category_name’ => $current_city, // Use the city value as the category name
‘tax_query’ => array(
array(
‘taxonomy’ => ‘post_tag’,
‘field’ => ‘slug’,
‘terms’ => ‘itinerary_yes’, // Replace with your desired tag slug
),
),
);
$attractions_query = new WP_Query($args);
if ($attractions_query->have_posts()) :
while ($attractions_query->have_posts()) : $attractions_query->the_post();
?>
“>
Next Stories
To see stories you must rotate your device to portrait orientation