Support » Fixing WordPress » Calling multiple Taxonomies

  • Hey,

    Im currently working on a site and i have been trying to call multiple taxonomies into a dropdown list but no matter what i have tried i cannot figure it out at all!

    Heres the code im working with:

    <p><?php _e('Select Category', tk_theme_name) ?></p>
    
         <?php
    $args = array(
     'show_option_all' => __('All Categories', tk_theme_name),
     'selected' => $two_col_top_two_cat_right,
     'echo' => 1,
     'taxonomy' => 'category',
     'name' => 'two_col_top_two_cat_right-' . $post->ID);
      wp_dropdown_categories($args);
    ?>

    I am trying to merge “category” and “event-categories” so that when the use clicks the drop down menu they see both; Taxonomy “Category” categories and Taxonomy “events-categories” categories.

    Sorry if this is confusing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    Have you tried it with an array:

    <?php
    $args = array(
     'show_option_all' => __('All Categories', tk_theme_name),
     'selected' => $two_col_top_two_cat_right,
     'echo' => 1,
     'taxonomy' => array('category', 'event-categories'),
     'name' => 'two_col_top_two_cat_right-' . $post->ID);
      wp_dropdown_categories($args);
    ?>

    Thread Starter Dazeh

    (@dazeh)

    My god…I swear i thought i tried this. Thank you so much!

    Moderator keesiemeijer

    (@keesiemeijer)

    You’re welcome. I’m glad you’ve got it resolved 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calling multiple Taxonomies’ is closed to new replies.