WordPress.org

Ready to get started?Download WordPress

Forums

Linear Tag Cloud
Permalinks for tag categories (2 posts)

  1. theSCHAPPY
    Member
    Posted 1 year ago #

    If you wish to create permalinks for the tags accordingly to the wordpress setting, please replace the following code within plugin's index.php around lines 106-109.

    old:
    echo 'href="'.home_url().'/?tag='.$array['slug'].'">
    '.$array['name'].' ('.$array['count'].')

    ';

    new:
    $this_tag = get_term_by('slug',$array['slug'],'post_tag');
    $tag_link = get_tag_link($this_tag->term_id);
    if (!$tag_link) {
    $tag_link = home_url().'/?tag='.$array['slug'];
    }
    echo 'href="'.$tag_link.'">
    '.$array['name'].' ('.$array['count'].')

    ';

    http://wordpress.org/extend/plugins/linear-tag-cloud/

  2. andrearufo
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you so much. New 1.4 version is ready.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic