My posts often begin, simply, with an ‘img’. The loop in my template to display a post contains, simply, the usual ‘php the_content…’ . Upon viewing the source online, I find that WordPress has inserted a ‘p’ in front of the ‘img’. (And, FWIW, the ‘p’ is never closed.) In addition to producing invalid HTML, this insertion yields difficulty in my CSS. (I would like to style the first paragraph of each post in a slightly larger font, and all but the first paragraph text-indented.) How may I avoid insertion of this ‘p’? My site is http://fjpoblam.com
- The topic ‘Generated p before img’ is closed to new replies.