WordPress.org

Ready to get started?Download WordPress

Forums

HTML inside a shortcode (3 posts)

  1. Ameisenman
    Member
    Posted 3 years ago #

    How can I get html-tags inside of a shortcode? I got something like that:
    [shortcode]<h1>Header</h1>[/shortcode].
    This results in an invalid html code :(

    Can anyone help?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

  3. Ameisenman
    Member
    Posted 3 years ago #

    Oh man, thank you for this. I wasn't sure if the codex covered my problem. My fault that I didn't read it to the end. Thanx so much for the hint!!! It was the wpautop() function!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.