• Resolved volcano

    (@volcano)


    “the_content” will echo whatever you put in the post. And by default there is a <p> wrapped around whatever “the_content” echoes.

    Is there a way to have “the_content” echo <p> free?

    And would it be possible to tweak the code in a way so you could have <p> tags around the copy in the post, rather than the image or the whole post
    itself?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes and no.
    I mean: WP is putting more than one p tags (e.g. after every 2xEnter)

    However, there is a workaround: put your picture in a div at the beginning of the post and the first <p> tag will appear only after that:
    <div class="mypicturediv"><img src="/whatever.... /></div>
    Start here typing your text...

    Now, WP will put the first p tag just before “Start here…” – so, basically you can style it in whichever way you want.

    Note. All of the above is true only in case you don’t use the ugly wysiwyg thing!!!

    Thread Starter volcano

    (@volcano)

    YES! Thank you so much – that was exactly what i was looking for 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘the_content’ is closed to new replies.