Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#44802 new defect (bug)

WP Generate Tag cloud not generating Link (href) tag value and Role tag value.

Reported by: tpkahlon Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 4.9.8
Component: Taxonomy Keywords: reporter-feedback
Focuses: Cc:


See demo: https://www.atsspec.com/blog/.

The tags are generated using wp_generate_tag_cloud function but are not clickable and has "role" tag associated with each hyperlink.

Change History (2)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Taxonomy
  • Keywords reporter-feedback added; dev-feedback removed

Hi @tpkahlon, welcome to WordPress Trac! Thanks for the report.

Does it still happen on a clean install with all plugins disabled and a default theme (Twenty Seventeen) activated?

Could you share the code where you're using wp_generate_tag_cloud()?

#2 @tpkahlon
3 years ago

Hello Sergey,

Please use the following snippet provided in following link: https://www.wpbeginner.com/plugins/how-to-display-most-popular-tags-in-wordpress/.

If you paste the snippet inside "functions.php" in Twenty Seventeen theme and include a Text in widget with [wpb_popular_tags].

It will generate a tag cloud with "role" and "href" attribute missing.

Note: See TracTickets for help on using tickets.