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.
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?
‘display option’
what is that?
It would help if you could provide a link to the page in question.
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
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.