Paragraph <p> around image on a Post
-
I would like to know if there is a way to remove the
<p>
wich the default WordPress post renderer (with WPAutoP I guess) puts around an image inside a post. I used the Disable WPAUTOP Plugin but it seems to disable all<p>
in a post. I want to remove the<p>
WordPress puts around an image, but to preserve the<p>
it puts around text.With Disable WPAUTOP Plugin no matter how many “ENTER”s I put before the text, I won’t get a
<p>
tag around it. The only way around this is to use the plugin and then put the<p>
around the text on the HTML code. This is no good for me as this site will be used by a client wich have him to code HTML, even a simple<p>
, would be asking too much of him.What I want to achieve with this is a post wich has an image that comes in the left part of the post
<div>
and then the post title and behind the post tilte the post text. I got the_title() and the_content() inside the same<div>
and floating everything just right, it does function if I have the post coded the way I need. But the<p>
around the image will have my floats go all wrong and breaks my design.Thanks.
- The topic ‘Paragraph <p> around image on a Post’ is closed to new replies.