• Resolved NickStrong

    (@nickstrong)


    I’ve been trying to include a captioned image within an <h3> element, like –

    <h3>[caption id="attachment_1459" align="alignleft" width="300"]<img class=”size-medium wp-image-1459″ alt=”xxxxxx” src=”https://xxxxxx/yyyyyy.jpg&#8221; width=”300″ height=”172″ /> Xxxxxx[/caption]Xxxxx</h3>

    Unfortunately, although this produces exactly the layout I need, WP strips it out at the first opportunity, changing it to –

    [caption id="attachment_1459" align="alignleft" width="300"]<img class=”size-medium wp-image-1459″ alt=”xxxxxx” src=”https://xxxxxx/yyyyyy.jpg&#8221; width=”300″ height=”172″ /> Xxxxxx[/caption]
    <h3>Xxxxx</h3>

    which is completely different.

    I have the PS Disable Auto Formatting plugin installed, but it obviously doesn’t touch this particular problem.
    What do I need to do, to keep my code the way I want it?

    Grateful for any suggestions, thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images in Elements’ is closed to new replies.