<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Putting Title and Caption below image on post</title>
		<link>http://www.themolitor.com/forums/topic/putting-title-and-caption-below-image-on-post</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Putting Title and Caption below image on post</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 12:58:48 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/putting-title-and-caption-below-image-on-post" rel="self" type="application/rss+xml" />

		<item>
			<title>cricketgriff on "Putting Title and Caption below image on post"</title>
			<link>http://www.themolitor.com/forums/topic/putting-title-and-caption-below-image-on-post#post-5290</link>
			<pubDate>Tue, 27 Dec 2011 13:53:43 +0000</pubDate>
			<dc:creator>cricketgriff</dc:creator>
			<guid isPermaLink="false">5290@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks.  Will do.
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Putting Title and Caption below image on post"</title>
			<link>http://www.themolitor.com/forums/topic/putting-title-and-caption-below-image-on-post#post-5285</link>
			<pubDate>Tue, 27 Dec 2011 13:36:20 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">5285@http://www.themolitor.com/forums/</guid>
			<description><p>Unfortunately there is a lot more involved in making this customization work. For this type of request, please use this form: <a href="http://themolitor.com/custom" rel="nofollow">http://themolitor.com/custom</a>
</p></description>
		</item>
		<item>
			<title>cricketgriff on "Putting Title and Caption below image on post"</title>
			<link>http://www.themolitor.com/forums/topic/putting-title-and-caption-below-image-on-post#post-5267</link>
			<pubDate>Tue, 27 Dec 2011 12:51:35 +0000</pubDate>
			<dc:creator>cricketgriff</dc:creator>
			<guid isPermaLink="false">5267@http://www.themolitor.com/forums/</guid>
			<description><p>I am trying to edit the single.php so that the image title and caption appear below each image.  I want it to look a bit like the Masonry page layout except the text comes from the image and it is a post instead of a page.  I have edited the single.php to pull the title and caption information and put that info on the post.  All titles and captions however position themselves below the first image instead of below each image.  </p>
<p>Here is the code that I added to single.php:</p>
<p>1) &#60;div id="postImgs"&#62;<br />
2) 	&#60;?php foreach ( $attachments as $attachment ) { ?&#62;</p>
<p>3)			&#60;?php $image_attributes = wp_get_attachment_image_src($attachment-&#62;ID,'medium');?&#62; </p>
<p>4)			&#60;!-- Pull the title and caption attribute to use below. --&#62;<br />
5)			&#60;?php $image_title_slg = $attachment-&#62;post_title;<br />
6)				$image_caption_slg = $attachment-&#62;post_excerpt;?&#62; </p>
<p>7)      			<a>ID , false ); ?&#62;"&#62;&#60;img width="&#60;?php echo $image_attributes[1] ?&#62;" height="&#60;?php echo $image_attributes[2] ?&#62;" src="&#60;?php echo wp_get_attachment_url( $attachment-&#62;ID , false ); ?&#62;" alt="&#60;?php the_title(); ?&#62;" width="280" border="0" /&#62;</a></p>
<p>8)		&#60;!-- Added this paragraph and header to put title and excerpt below image --&#62;<br />
9)			&#60;h3 class="imageTitleSLG"&#62; &#60;?php echo $image_title_slg; ?&#62; &#60;/h3&#62;<br />
10)			&#60;p class="imageCaptionSLG"&#62; &#60;?php echo $image_caption_slg; ?&#62; &#60;/p&#62;</p>
<p>11)	&#60;?php } ?&#62;<br />
12)&#60;/div&#62;</p>
<p>My edits fall on lines 4-6 and 8-10.  A sample page that is using sample.php is: <a href="http://www.consciouscricketphotography.com/wp/2011/12/test-post/" rel="nofollow">http://www.consciouscricketphotography.com/wp/2011/12/test-post/</a> .  You will not see the titles and captions once the page loads unless you run your cursor over the horse image so that it becomes semi-transparent.</p>
<p>I would love any help I can get with this!  Thanks in advance.
</p></description>
		</item>

	</channel>
</rss>
