Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




get_tags is limited only to tags associated with published content.

UserPost

4:42 pm
August 31, 2011


whiteorb

Member

whiteorb

posts 49

1

I'm pulling all of the site's tags for a glossary. I'm finding that when role scoper is active it only is retreiving entries that are associated with pages. If disabled it pulls everything, which is what I want it to do.

I looked in the options and didn't find anything that would change this. Any ideas?

Working

Not Working

$tags = get_tags( array( 'hide_empty' => false ) );

if ($tags) {

  foreach ($tags as $tag) {

    if ($tag->description) {

      echo '<dt><a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a></dt><dd>' . $tag->description . '</dd>';

    }

  }

}

8:47 am
September 1, 2011


Kevin

Admin

posts 2503

2

The updated Role Scoper development code adds support for hide_empty=false in get_tags().

9:08 am
September 1, 2011


whiteorb

Member

whiteorb

posts 49

3

Excellent, thx. I love when I find real stuff and not just stupid Zach isms.


About the Agapetry forum

Currently Online:

15 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin