interesting. Kind of surprised that both I didn’t catch this in testing and that no one has brought it up before. I think I found a fix but before I put it into a release can you do this for me?
On line ~263 of mctagmap_functions.php, you’ll see
/* ===== group numbers ===== */
replace that line with the below:
foreach ($groups as $key => $value) {
if(is_int($key)){
$numar = $groups[$key];
unset($groups[$key]);
$groups[$key] = $numar;
}
}
/* ===== group numbers ===== */
Seems I didn’t catch that 0 (zero) throws off the sorting.
If that works let me know. I’ll have to redo a little of the logic for when numbers are grouped before adding it to the core.
Done but dont seems to work ๐
Alright, it’s that bracket. Try this out for me:
foreach ($groups as $key => $value) {
if(is_int($key) || preg_match('[\W]', $key)){
$numar = $groups[$key];
unset($groups[$key]);
$groups[$key] = $numar;
}
}
Done, no effect at all ๐
Hmmm. well it did have an effect. Notice the ‘[‘ is now near the end by the numbers. On my local where I’m trying to replicate the issue, the bracket was being stuck in the middle of the letter like the zero was before and that broke things.
Let me add more tags and try to replicate it better.
well hell. Right above the code I’ve been pasting you’ll see:
ksort($groups);
change that to:
ksort($groups, SORT_STRING);
and give it a whirl.
Is working! You are the best! Now it just need a way to include/excclude category
sweet.
For the exclude,
exclude: A comma seperated, case sensitive list of the tags you do not wish to appear in the lists.
and it appears your are doing exclude=”Nuove Serie” and I don’t see it in your list of categories so…
Yea but if i try to exclude more than one, don’t work!
Btw i set the topic to resolved
It doesn’t? Ono my local, if i do: exclude="Tacos, Bananas" it seems to work fine. What are you trying to exclude that isn’t working?
I want to exclude some category to show because i use that plugins for make list of the category ^^
I can set up a demo page if you want to see it in action
[mctagmap columns="4" hide="no" num_show="3" more="more ยป" toggle="ยซ less" show_empty="no" name_divider="|" tag_count="yes" exclude="Nuove Serie,K Return of Kings,Anitore EX,Hidan no Aria AA,Valkyrie Drive: Mermaid,Dance with Devils,Garo: Guren no Tsuki,Ore ga Ojousama Gakkou ni "Shomin Sample" Toshite Gets Sareta Ken,Shinmai Maou no Testament Burst,Fushigi na Somera-chan,Fushigi na Somera-chan,Sakurako-san no Ashimoto ni wa Shitai ga Umatteiru,Subete ga F ni Naru, descriptions="No" width="250" equal="no" manual="" basic ="no" basic_heading="no" show_categories="yes" show_navigation="yes"]
http://www.animesubita.info/test-exclude/