• howdy WordPress folks,

    I searched ‘images’ on the forums, but most of the posts were “not a support question.” So here goes: how do you wrap text around an image and add a caption? The code in WordPress documentation (http://codex.wordpress.org/Wrapping_Text_Around_Images#Left.2C_Right.2C_and_Centered_Examples) is incorrect:

    <img src=”/images/leaf.gif” class=”right” alt=”Red leaf” title=”Red Leaf” />

    WordPress 2.1 simply deletes:

    class=”right”

    and leaves the image aligned left by default. As for captions, the documentation is also incorrect:

    <div class=”caption right”>
    <img src=”/images/leaf.jpg” alt=”leaf graphic” title=”leaf graphic”>
    Red Leaf</div>

    WordPress 2.1 turns this into:

    <div>
    img src=”/images/leaf.jpg” alt=”leaf graphic”>
    Red Leaf</div>

    Why is WordPress documentation incorrect, and how do I:

    1) wrap text around images
    2) add a caption

    ? (And what are the alt and title tags for, if they don’t show up anywhere? WordPress deletes the title tag anyway.)

    utterly confused,
    *Stephanie

Viewing 3 replies - 1 through 3 (of 3 total)
  • The documentation is not incorrect.
    The user is doing the wrong thing.
    If you want your own code in a post – turn off completely the wysiwyg monster.
    (users > your profile > uncheck the rich editor box)

    Thread Starter sgerson

    (@sgerson)

    thanks for responding Moshu – what am I doing that’s incorrect? I’d rather not write my own code – but I couldn’t find documentation for doing this without the wysiwyg monster. your help is SUPER DUPER appreciated.
    *s

    Hi, I have written a free plugin to caption images automatically using the alt text of the image. If there is no alt text then no caption is set. An example can be seen at: http://imagecaptioneasy.contentspring.com/ where it can also be downloaded.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wrapping text around and adding captions to images’ is closed to new replies.