Forums

wp_tag_cloud: Changing "title" (2 posts)

  1. scooly
    Member
    Posted 4 years ago #

    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='http://zaistniejwsieci.pl/tag/internet-explorer/' title='1 topics' rel='tag' style='font-size: 7pt;'>internet-explorer</a>

  2. Kafkaesqui
    Moderator
    Posted 4 years ago #

    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:

    http://wordpress.org/support/topic/144400#post-651553

Topic Closed

This topic has been closed to new replies.

About this Topic