The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Query Multiple Taxonomies
[resolved] Conditional tag problem (3 posts)

  1. johnklijnen
    Posted 5 years ago #

    If I'm here: myhomepageurl/regio/limburg/?post_type=evenementen

    the following conditional tag works fine:
    <?php if ( is_tax('regio', 'limburg') ) { ?>

    But if I'm here: myhomepageurl/?eventtype=concerten&regio=limburg
    the same conditional tag doesn't work.

    How can I make the conditional tag to work?

  2. scribu
    Plugin Author

    Posted 5 years ago #

    You can't make is_tax() work. You can use qmt_get_query() instead:

    $tax_query = qmt_get_query();
    if ( $tax_query['regio'] == 'limburg' ) {
  3. johnklijnen
    Posted 5 years ago #

    Thanks, Sribu that works perfect!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Query Multiple Taxonomies
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic