@bruinkid
I think that’s because the taxonomy slug is actually post_tag not tag.
I tried below. Nothing shows.
// add subscribe2 taxonomies
function post_tags($taxonomies) {
$taxonomies[] = ‘post_tag’;
return $taxonomies;
}
add_filter(‘s2_taxonomies’, ‘post_tags’);
@bruinkid
It works for me, you should see the names of categories and tags listed together.
You can also try the following to just see Tag names alone:
function post_tags($taxonomies) {
$taxonomies = array('post_tag');
return $taxonomies;
}
add_filter('s2_taxonomies', 'post_tags');
I tried what you said, but then my ‘categories’ disappear and only ‘tags’ show. What codes can I put so that my ‘categories’ and ‘tags’ both show?
When I put below code, then ‘tags’ disappear and only ‘categories’ show. How to let both ‘category’ and ‘tag’ show?
// add subscribe2 taxonomies
function post_tags($taxonomies) {
$taxonomies = array(‘post_tag’);
return $taxonomies;
}
add_filter(‘s2_taxonomies’, ‘post_tags’);
function categories($taxonomies) {
$taxonomies = array(‘category’);
return $taxonomies;
}
add_filter(‘s2_taxonomies’, ‘categories’);
@bruinkid
As I’d expect, each time you are clearing out the array and returning a one value array.
The code you needed is what you posted here.