WordPress.org

Ready to get started?Download WordPress

Forums

Tag Groups
[resolved] How can I list tags arranged by groups? (4 posts)

  1. hugofcampos
    Member
    Posted 1 year ago #

    I want something like:

    array(
       'group-name' => array(
          'tag1',
          'tag2',
          ...
       ),
       ...
    )

    Is there any approach to that?

    http://wordpress.org/extend/plugins/tag-groups/

  2. Chris
    Member
    Plugin Author

    Posted 1 year ago #

    You could use the tag_groups_cloud function and set the second parameter to "true", try for example:

    if ( function_exists( 'tag_groups_cloud' ) ) print_r( tag_groups_cloud( array( 'orderby' => 'count', 'order' => 'DESC' ), true ) );
  3. hugofcampos
    Member
    Posted 1 year ago #

    That's awesome!

    Thank you very much!

  4. Chris
    Member
    Plugin Author

    Posted 1 year ago #

    You are welcome!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.