[wp-trac] Re: [WordPress Trac] #4693: Make get_tags() honour $args
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 3 06:30:12 GMT 2007
#4693: Make get_tags() honour $args
---------------------+------------------------------------------------------
Reporter: jorda | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3 (trunk)
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by DD32):
Replying to [comment:2 Otto42]:
> How about this patch? It will allow the wp_tag_cloud function to be
called with echo=false, thus just returning the tag cloud and not
outputting it.
Thats not really what i had in mind.
It seems i got slightly confused, Its wp_generate_tag_cloud which i was
thinking of;
It Accepts a list of tags to use to generate the cloud, however can only
used to generate Clouds of WP Tags due to this part of the function:(The
link is hard coded)
{{{
$counts = $tag_links = array();
foreach ( (array) $tags as $tag ) {
$counts[$tag->name] = $tag->count;
$tag_links[$tag->name] = get_tag_link( $tag->term_id );
}
}}}
I think it should be in a different Ticket though, So if i still havnt
managed to make myself clear.. i'll make a new ticket next week.
--
Ticket URL: <http://trac.wordpress.org/ticket/4693#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list