[wp-trac] [WordPress Trac] #44802: WP Generate Tag cloud not generating Link (href) tag value and Role tag value.

WordPress Trac noreply at wordpress.org
Mon May 3 23:06:43 UTC 2021


#44802: WP Generate Tag cloud not generating Link (href) tag value and Role tag
value.
-------------------------------+------------------------------
 Reporter:  tpkahlon           |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Taxonomy           |     Version:  4.9.8
 Severity:  major              |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by chriscoyier):

 Just noting the same...

 If I do

 {{{#!php
 <?php

   $tags = get_tags();

   $tag_string = wp_generate_tag_cloud($tags, array(
     'smallest'                  => 1.5,
     'largest'                   => 1.5,
     'unit'                      => 'rem',
     'number'                    => 0,
     'format'                    => 'list',
     'orderby'                   => 'count',
     'order'                     => 'DESC',
     'show_count'                => true,
     'echo'                      => false
   ));

   echo $tag_string;

 ?>
 }}}

 I get HTML output of a list of tags, but the URL's are all missing, like


 {{{
 <ul class='wp-tag-cloud' role='list'>
 <li><a href="" class="tag-cloud-link tag-link-1108 tag-link-position-1"
 style="font-size: 1.5rem;" aria-label="SVG (188 items)">SVG<span class
 ="tag-link-count"> (188)</span></a></li>
 <li><a href="" class="tag-cloud-link tag-link-30 tag-link-position-2"
 style="font-size: 1.5rem;" aria-label="accessibility (147
 items)">accessibility<span class="tag-link-count"> (147)</span></a></li>

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44802#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list