• Hi all,

    I can’t find solution by myself.
    I have multiple taxonomies – property-city and property-type.
    I created taxonomy template for taxonomy property-type with query:

    $queried_object = get_queried_object();
    $term_id = $queried_object->term_id;
    $properties_for_map = array(
    ‘post_type’ => ‘property’,
    ‘posts_per_page’ => -1,
    ‘tax_query’ => array(
    array(

    ‘taxonomy’ => ‘property-type’,
    ‘terms’ => $term_id

    )
    )
    );

    At this point all works OK.
    Next I created menu items with links like -/?post_type=property&property-city=city-name&property-type=restraunt

    Question, how can I make slug working as query in my template file?

    • This topic was modified 7 years, 8 months ago by arturspaipals.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WP query from URL’ is closed to new replies.