WordPress.org

Support

Support » Plugins and Hacks » Linear Tag Cloud » Permalinks for tag categories

Permalinks for tag categories

  • 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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Permalinks for tag categories’ is closed to new replies.
Skip to toolbar