Forums

Mixing shortcodes and html markup (1 post)

  1. flymike
    Member
    Posted 1 year ago #

    What are the rules for mixing shortcodes with html markup? The following works as expected:
    <div>some text[sca att=x]some text [scb att=y]some text.</div>
    but, if I insert paragraph markup like this:
    <div>some text[sca att=x]some text <p>[scb att=y]some text</p>.</div>
    then the entire post is not displayed. (I'm showing what is actually in the post_content field of the database)
    I need to do a significant amount of word and phrase substitution, and I'm trying to do it with shortcodes. But I also need to format the result with html markup, like paragraphs.
    Am I required to place every shortcode by itself on a new line?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.