<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dynamic Page Graphics in WordPress</title>
	<atom:link href="http://reciprocity.be/dynamic-page-graphics-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://reciprocity.be/dynamic-page-graphics-in-wordpress/</link>
	<description>A posse ad esse</description>
	<lastBuildDate>Thu, 09 Feb 2012 22:15:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Keith</title>
		<link>http://reciprocity.be/dynamic-page-graphics-in-wordpress/comment-page-1/#comment-1254</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Thu, 21 May 2009 20:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://reciprocity.be/?p=139#comment-1254</guid>
		<description>That would be easy enough to do...you&#039;d just need to do a check for a file with the generated name, and if it doesn&#039;t exist, use the default.  You could do something like this: 
 
&lt;php 
if (file_exists(get_bloginfo(&#039;template_directory&#039;).&#039;/images/&#039;.$titlepic)) { 
?&gt; 
    &lt;img src=&quot;&lt;?php bloginfo(&#039;template_directory&#039;); ?&gt;/images/&lt;?php echo $titlepic ?&gt;&quot; alt=&quot;&lt;?php $title ?&gt;&quot; /&gt; 
&lt;?php 
} else { 
?&gt; 
    &lt;img src=&quot;&lt;?php bloginfo(&#039;template_directory&#039;); ?&gt;/images/default.png&quot; alt=&quot;default picture&quot; /&gt; 
&lt;?php 
} 
?&gt; </description>
		<content:encoded><![CDATA[<p>That would be easy enough to do&#8230;you&#39;d just need to do a check for a file with the generated name, and if it doesn&#39;t exist, use the default.  You could do something like this: </p>
<p>&lt;php<br />
if (file_exists(get_bloginfo(&#39;template_directory&#39;).&#39;/images/&#39;.$titlepic)) {<br />
?&gt;<br />
    &lt;img src=&quot;&lt;?php bloginfo(&#39;template_directory&#39;); ?&gt;/images/&lt;?php echo $titlepic ?&gt;&quot; alt=&quot;&lt;?php $title ?&gt;&quot; /&gt;<br />
&lt;?php<br />
} else {<br />
?&gt;<br />
    &lt;img src=&quot;&lt;?php bloginfo(&#39;template_directory&#39;); ?&gt;/images/default.png&quot; alt=&quot;default picture&quot; /&gt;<br />
&lt;?php<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew</title>
		<link>http://reciprocity.be/dynamic-page-graphics-in-wordpress/comment-page-1/#comment-1087</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Fri, 17 Apr 2009 18:09:06 +0000</pubDate>
		<guid isPermaLink="false">http://reciprocity.be/?p=139#comment-1087</guid>
		<description>is it possible to set a default image so that a new page added without a corresponding graphic will use that default image? </description>
		<content:encoded><![CDATA[<p>is it possible to set a default image so that a new page added without a corresponding graphic will use that default image?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

