Allowing HTML within WordPress excerpt

Home / Boilerplates / Allowing HTML within WordPress excerpt

Allowing HTML within WordPress excerpt is a very common request. Therefore, I am providing likely the most complete solution available on the Internet. The code is posted on stack exchange WordPress channel and is created by Pieter Goosen. The complete explanation with further examples can be found on the link provided.

 

  • André Dagenais

    Thank you very much, It’s working. But I have a question, if I want to apply this only on custom post type, is it possible to have a complete separate custom the_exerpt function?
    Regards,
    André

    • Maybe you could create a custom field for exerpt for the custom post type, that would appear only on that template, that’s how i would go.