• Resolved miinalee

    (@miinalee)


    Hi, thanks for the great plugin. I just need a little bit more help regarding tag cloud on the edit page. My website is a multi-author web and I would like for the tag cloud to be removed so people will not have the access to popular/tag cloud in the back end. I tried the below code and all are not working so great.

    The taxonomy slug that I’d like to have it’s tag cloud hidden is “creator”

    $labels = array('name' => 'creator', 
        'popular_items' => NULL);
    register_taxonomy('creator', 'author', 
        array('show_tagcloud' => false, 
            'hierarchical' => false, 
            'labels' => $labels, 
            'query_var' => true, 
            'show_in_menu' => false,
            'choose_from_most_used' => NULL,));

    and

    add_filter( 'wp_tag_cloud', 'remove_tag_cloud', 10, 2 );
    
    function remove_tag_cloud ( $return, $args )
    {
            return false;
    }

    So, anyone can help me with this issue?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi,

    Not sure we’ll be able to be too much help, but we’ll try.

    Regarding trying to set “choose_from_most_used” to null, that would be part of the $labels variable, and not a spot set in that current position in your code. Also, setting to null would cause it to fall back to default values, and not be empty. Perhaps ' ' would do more, as it is no string, but not technically empty.

    $labels = array('name' => 'creator', 'popular_items' => ' ', 'choose_from_most_used' => ' ' );
    

    For the second part, I believe that would affect the frontend more than the backend, as that’s part of the display of the cloud itself, not something on the management side.

    That said, I don’t know of any UI really for management of what shows up in a tag cloud. The terms used and displayed in it would just be managed and calculated by WordPress itself, based on numbers around tag terms just being used and their frequency.

Viewing 1 replies (of 1 total)

The topic ‘Removing Tag Cloud from Edit Page’ is closed to new replies.