• Hi, I add ‘tag’ to taxonomies according to what you said. Nothing shows up. I only see a list of my ‘categories’ in ‘Registered Users’ tab page.

    // add subscribe2 taxonomies
    function tags($taxonomies) {
    $taxonomies[] = ‘tag’;
    return $taxonomies;
    }
    add_filter(‘s2_taxonomies’, ‘tags’);

Viewing 6 replies - 1 through 6 (of 6 total)
  • @bruinkid

    I think that’s because the taxonomy slug is actually post_tag not tag.

    Thread Starter bruinkid

    (@bruinkid)

    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');
    
    Thread Starter bruinkid

    (@bruinkid)

    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?

    Thread Starter bruinkid

    (@bruinkid)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘add ‘taxonomy’ not working’ is closed to new replies.