• Hi!

    I use wp_tag_cloud function. How I can change the “title” parametr from generated HTML code (“1 topics, 2 topics…” etc)?

    <a href='https://zaistniejwsieci.pl/tag/internet-explorer/' title='1 topics' rel='tag' style='font-size: 7pt;'>internet-explorer</a>

Viewing 1 replies (of 1 total)
  • What do you want to change it to?

    One way would be to edit the source and modify the output. The wp_generate_tag_cloud() function, which creates the HTML in this case, is in category_template.php under the wp-includes directory. Source editors’ credo: Make backup copies of files before editing them.

    Another is to create a plugin that works off the wp_tag_cloud API hook and rewrites the title attribute values on the fly. You can see an example of such a plugin here:

    https://www.ads-software.com/support/topic/144400#post-651553

Viewing 1 replies (of 1 total)
  • The topic ‘wp_tag_cloud: Changing “title”’ is closed to new replies.