Filter products on category AND tag

You can define taxonomy with post type. Create and display separate categories and tags with taxonomy. Example code: add_action( ‘init’, ‘artists’ ); function artists() { register_post_type( ‘artists’, array( ‘labels’ => array( ‘name’ => __( ‘artists’ ), ‘singular_name’ => __( ‘artist’ ) ), ‘public’ => true, ‘has_archive’ => true, ‘rewrite’ => array( ‘slug’ => ‘artists’ ), … Read more

Use get_cat_ID to retreive multiple category IDs

$category_in = array(); foreach($topicsofinterest as $topicofinterest){ //Chaneg ‘category’ to the taxonomy name. $term = get_term_by( ‘name’, $topicofinterest, ‘category’); $category_in[] = $term->term_id; } Just curious, why don’t you store the category ID instead of category name in user meta?