• Resolved ts_sklett

    (@ts_sklett)


    First of all this plugin is EXACTLY what I wanted! I use MediaWIKI heavily and depend on Templates a lot and this is a great template-like solution for WP.

    I’m new to WP and brand new to your plugin. During my testing I discovered one thing which I wanted to bring up in case I’m doing something wrong.
    The following Post or Page code:

    <h2>Some Info</h2>
    <em>Import details, blah, blah, blah</em>

    will render out with a <p> tag around the <em> tags, like this:

    <h2>Some Info</h2>
    <p><em>Import details, blah, blah, blah</em></p>

    I created a snippet with this content:
    <em>Import details, blah, blah, blah</em>

    and added to my page like this:

    <h2>Some Info</h2>
    [snippet-name]

    It rendered without the enclosing <p> tags. This creates an inconsistency which is a bummer. WP adds the <p> automatically but apparently when shortcode is used it doesn’t. I tried the “wptexturize” option and this didn’t change anything. the workaround of course is to add the <p> tags myself.

    Is this expected behavior? Is there an option or something I can do to make WP treat shortcode snippets as regular content and wrap them in <p> tags if it sees fit?

    https://www.ads-software.com/plugins/post-snippets/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Snippet not wrapped in tags’ is closed to new replies.