problem with ‘ in category name
-
on category (archive.php) I use
if (in_category(single_cat_title('', false))) {
to display article from the actual categoryThe problem appear if category name contain ‘ (apostrophe)
it doesn’t display any postwhen a check in source I notice
single_cat_title() replace ??’?? U+0027 by ??’?? U+2019
So for today i quick fix by replacing my category changing ??’?? U+0027 by ??’?? U+2019
but as you could guess is not a good way
Even if ??’?? U+2019 is the rule for french
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘problem with ‘ in category name’ is closed to new replies.