Viewing 1 reply thread
  • Author
    Posts
    • #8730

      I have tried everything, but can’t seem to find a way of assigning taxonomies to work for multiple post types. I tried comma separated and adding them in an array like so:

      'post_type' => 'post, cpt1, cpt2'

      and

      'post_type' => array('post', 'cpt1', 'cpt2')

      What am I missing?

    • #8733
      Steve
      Keymaster

      Passing an array should work.

      If you can’t get that to work, you can use the WordPress function register_taxonomy_for_object_type()

Viewing 1 reply thread
  • You must be logged in to reply to this topic.