ID (anchor) generation
-
I’ve noticed you use
sanitize_html_class
in conjunction withget_the_title
to 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_title
can 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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘ID (anchor) generation’ is closed to new replies.