Image outside the loop
-
Hello,
I’m currently working on my exams, and I’m using wordpress to display some of my “clients” work.
The thing is, I want my image outside the <p> tags the loop creates.
Like this:<div id="prosjekt"> <img src="myImage.jpg" /> <div id="info"> <h2>Title</h2> <p>Paragraph</p> </div> </div>
However, when I don’t want a static image, I end up with this:
<div id="prosjekt"> <div id="info"> <h2>Title</h2> <p><img src="myImage.jpg" />Paragraph</p> </div> </div>
Is it posible to get the image outside the paragraph tags, if you insert it with the post editor?
Actual WP-code:
<div id="prosjekt"> <div id="info"> <h2><?php the_title(); ?></h2> <?php the_content(); ?> </div> </div>
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Image outside the loop’ is closed to new replies.