WordPress.org

Make WordPress Core

Opened 14 months ago

Last modified 14 months 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:
PR Number:

Description

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
14 months 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
14 months 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.