Display multiple taxonomies in a function

I am trying to edit a plugin that allows 1 taxonomy to be associated with a custom post type on import of data. I need it to have several custom taxonomies. Here is the original function:

/**
* Initialize the class and set its properties.
*
* @since 1.0.0
*/
public function __construct() {

$this->event_posttype = ‘facebook_events’;
$this->taxonomy = ‘classification’;
$this->tag_taxonomy = ‘facebook_tag’;

}

I have tried the following, which doesn’t work.

/**
* Initialize the class and set its properties.
*
* @since 1.0.0
*/
public function __construct() {

$this->event_posttype = ‘facebook_events’;
$this->taxonomy = array(
‘top_level_homepage_categories’,
‘gomunkee_category’,
‘subcategory’,
‘age_range’,
‘classification’)

;
$this->tag_taxonomy = ‘facebook_tag’;

}

input gratefully received, 1st time posting, hope I have done it right…

Read more here:: Display multiple taxonomies in a function

Leave a Reply

Your email address will not be published. Required fields are marked *