• Resolved Chris

    (@chrisdothtml)


    Hello all,

    I’ve been getting more and more into WordPress theme development. One of the wonderful features I have come to learn is shortcodes. They’re a great tool, and I’m sure I will find many uses for them.

    The only issue I seem to be having so far is that when entering them into a page’s content, something like this works completely fine:

    [caption]testing[/caption]

    However, when I add an attribute like so:

    [caption type="testType"]testing[/caption]

    The shortcode disappears upon saving the page. This does not prevent the correct output being shown on the page, but it removes the original shortcode text from the edit field for the page.

    Does anyone have any insight as to how I could prevent this?

    Thanks,
    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you fixed this?

    Thread Starter Chris

    (@chrisdothtml)

    Honestly I don’t even remember.

    Edit: On second thought, I think my issue was editing in the WYSIWYG editor, when I should have been editing code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode tags disappear once page is saved’ is closed to new replies.