Forums

[Plugin: Manage Tags Capability] all_post_tags (2 posts)

  1. john.andrews
    Member
    Posted 2 years ago #

    I found that adding the get => all arg to $all_post_tags was necessary if I wanted see the complete list of tags. Perhaps this wasn't your intent, but it was the modification I made for it to fit my need. Overall well done and thank you for your contribution.

    manage_tags_capability.php line:41
    $args = array(
      'get' => 'all'
    );
    $all_post_tags = get_terms('post_tag',$args);

    http://wordpress.org/extend/plugins/manage-tags-capability/

  2. bjallen
    Member
    Posted 2 years ago #

    I'm going to change this argument to your suggestion. Makes more sense that way.

    But I am curious to know more about which tags weren't showing up for you. I tested this with 70 tags with just the hide_empty=>0 arg and all 70 were displayed.

    There's also the child_of that is overwritten by get=>all but since I'm only targeting post_tags (which I don't think have children) that shouldn't matter here. Maybe I'm missing some other condition?

    At any rate, I'll make this change. Thanks for the help!

Topic Closed

This topic has been closed to new replies.

About this Topic