• Hello,
    thanks for your wonderful plugin. It would be so cool if u can add an ‘include’ option for some selected tags only. I only want to display some selected tags on the homage and not all.

    The ‘exclude’ option is a really useful feature but i guess that wouldn’t go down well with a site of about 100 tags, i only want to show about 12 tags (3 columns) on the homepage and change them periodically.

    It would be a really tedious job to exclude those bunch of tags (and even make changes again when new ones are created).

    http://wordpress.org/extend/plugins/multi-column-tag-map/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author tugbucket

    (@tugbucket)

    add an ‘include’ option…

    Here’s the exclude:

    foreach($tags as $tag){
    	$fl = mb_substr($tag->$arraypart ,0,1);
    	$ll = mb_substr($tag->$arraypart ,1);
    	$tag->$arraypart  = $fl.$ll;
    	if (preg_match('/(?<=^|[^\p{L}])' . preg_quote($tag->$arraypart ,'/') . '(?=[^\p{L}]|$)/ui', $exclude)) {
    		unset($tag->$arraypart );
    	}
    }

    The opposite of exclude would be include so:

    foreach($tags as $tag){
    	$fl = mb_substr($tag->$arraypart ,0,1);
    	$ll = mb_substr($tag->$arraypart ,1);
    	$tag->$arraypart  = $fl.$ll;
    	if (!preg_match('/(?<=^|[^\p{L}])' . preg_quote($tag->$arraypart ,'/') . '(?=[^\p{L}]|$)/ui', $exclude)) {
    		unset($tag->$arraypart );
    	}
    }

    i only want to show about 12 tags (3 columns) on the homepage and change them periodically.

    Sounds like you could just code this manually instead of using a plug in.

    It would be a really tedious job to exclude those bunch of tags…

    <?php wp_tag_cloud('separator=,&number=0'); ?>

    copy and paste the list into the shortcode. Edit as needed.

    Thread Starter Page404

    (@page404)

    Hey Alan, actually i don’t know anything about coding, with that said, i got no option than to use plugins.
    …and thanks for the code, it worked but…there is a problem!

    I just want to display the selected tags(about 15) using the ‘display option’. unfortunately all the tags are displayed in one long column instead of 3 columns.
    From ur tutorials, it seems that with the basic settings, columns are split by the number of tags. Therefore, splitting them into 3 columns wouldn’t work.
    I guess this plugin wouldn’t work in my case right, or there is still a way out?

    Plugin Author tugbucket

    (@tugbucket)

    ‘display option’

    what is that?

    It would help if you could provide a link to the page in question.

    Thread Starter Page404

    (@page404)

    oh sorry! it’s rather
    The “basic” option.
    http://wordpress.org/extend/plugins/multi-column-tag-map/screenshots/
    last but one screenshot, thnx 4 ur patience

    Plugin Author tugbucket

    (@tugbucket)

    I’m just guessing but have you defined the “width” option? Possible your columns are too wide. Again, only a guess because without a link to the page, that’s all I can do.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add "Include" for specific tags’ is closed to new replies.