WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Query Multiple Taxonomies] Conditional tag problem

[Resolved] [Plugin: Query Multiple Taxonomies] Conditional tag problem

  • johnklijnen
    Member

    @johnklijnen

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu
    Member

    @scribu

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

    <?php
    $tax_query = qmt_get_query();
    if ( $tax_query['regio'] == 'limburg' ) {
    ?>
    johnklijnen
    Member

    @johnklijnen

    Thanks, Sribu that works perfect!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Query Multiple Taxonomies] Conditional tag problem’ is closed to new replies.