ID (anchor) generation
-
I’ve noticed you use
sanitize_html_classin conjunction withget_the_titleto generate IDs for the FAQs. This does not work like described in the Arconix FAQ documentation. For example, “Why are opening quotes not being styled” as the title of a FAQ entry results in the ID “faq-Whyareopeningquotesnotbeingstyled” instead of “faq-why-are-opening-quotes-not-being-styled”.A solution would be to use
sanitize_title_with_dashes, preferable in conjunction withthe_title_attribute(becauseget_the_titlecan be filtered by other plugins and may contain HTML tags). If you’ve got a Git repository somewhere, I’d be happy to provide a pull request.
The topic ‘ID (anchor) generation’ is closed to new replies.