I have tried to approach this a few different ways but have not found a solution.
In order to display artists’ full names but in alphabetical order by last name I added
<!--lastname-->to each category in phpmyadmin (since the WP category management page wouldn’t save the commented out portions) and it used to work great. But with the recent upgrade it stopped working as you can see: http://tinyurl.com/ynjhgu
To make things weirder on the individual artwork pages it displays the categories (i.e. the artist names) correctly: http://tinyurl.com/2b9tyz If you look at the code there you’ll see the
<!--lastname-->is in there, hidden away nicely.
What’s going on? Why are these commented out segments showing up? What can I do to fix it?
I can imagine three solutions:
1) Fixing my wp_list_cats code in some way that I can’t think of.
2) Convincing WordPress to not turn the
<!-- -->characters into viewable charcters.
3) Hack something to allow the categories to sort by slug or nicename bypassing the need for this hack in the first place. (By the way, orderby=nicename should really be an option)
- The topic ‘Why am I seeing <!– and –> in my category names?’ is closed to new replies.