<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eileen M. Carpenter</title>
	<atom:link href="http://www.eileencarpenter.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.eileencarpenter.net</link>
	<description></description>
	<lastBuildDate>Mon, 19 Sep 2011 01:11:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Benmarl Winery</title>
		<link>http://www.eileencarpenter.net/portfolio/design/websites/benmarl-winery</link>
		<comments>http://www.eileencarpenter.net/portfolio/design/websites/benmarl-winery#comments</comments>
		<pubDate>Mon, 19 Sep 2011 01:09:07 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=695</guid>
		<description><![CDATA[Website Design &#38; Wordpress CMS for benmarl.com. Languages used: XHTML, CSS, PHP, JQuery &#124; <a href="http://benmarl.com" target="_blank">View Site &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.eileencarpenter.net/wp-content/uploads/2011/09/benmarl.jpg" alt="" title="benmarl" width="590" height="615" class="aligncenter size-full wp-image-699" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/portfolio/design/websites/benmarl-winery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not Just Math</title>
		<link>http://www.eileencarpenter.net/portfolio/design/websites/not-just-math</link>
		<comments>http://www.eileencarpenter.net/portfolio/design/websites/not-just-math#comments</comments>
		<pubDate>Wed, 15 Jun 2011 19:33:48 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=690</guid>
		<description><![CDATA[Website design &#38; Wordpress CMS for notjustmath.com. Languages used: XHTML, CSS, PHP, JQuery &#124; <a href="http://www.notjustmath.com" target="_blank">View Site &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.eileencarpenter.net/wp-content/uploads/2011/06/notjustmath.jpg" alt="" title="notjustmath" width="590" height="399" class="aligncenter size-full wp-image-692" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/portfolio/design/websites/not-just-math/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically Get the Slug of the Current Page</title>
		<link>http://www.eileencarpenter.net/blog/dynamically-get-the-slug-of-the-current-page</link>
		<comments>http://www.eileencarpenter.net/blog/dynamically-get-the-slug-of-the-current-page#comments</comments>
		<pubDate>Tue, 15 Feb 2011 19:22:44 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[slug]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=677</guid>
		<description><![CDATA[I needed to get the post slug for a wordpress client because I conditionally needed to show posts and a custom post type that was tagged a certain way. By naming the page and the tag I needed the same, their slug was the same. Therefore being able to &#8220;relate posts&#8221; dynamically. 
All you need [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to get the post slug for a wordpress client because I conditionally needed to show posts and a custom post type that was tagged a certain way. By naming the page and the tag I needed the same, their slug was the same. Therefore being able to &#8220;relate posts&#8221; dynamically. </p>
<p>All you need is to add this to your functions.php</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">function</span> the_slug<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$post_data</span> <span class="sy0">=</span> get_post<span class="br0">&#40;</span><span class="re1">$post</span><span class="sy0">-&gt;</span><span class="me1">ID</span><span class="sy0">,</span> ARRAY_A<span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$slug</span> <span class="sy0">=</span> <span class="re1">$post_data</span><span class="br0">&#91;</span><span class="st0">&#39;post_name&#39;</span><span class="br0">&#93;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">return</span> <span class="re1">$slug</span><span class="sy0">;</span> </div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>Then anywhere in your template you can get posts dynamically by the tag slug. </p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span> <span class="re1">$relatedposts</span> <span class="sy0">=</span> get_posts<span class="br0">&#40;</span><span class="kw3">array</span><span class="br0">&#40;</span><span class="st0">&#39;post_type&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;post&#39;</span><span class="sy0">,</span> <span class="st0">&#39;numberposts&#39;</span> <span class="sy0">=&gt;</span> <span class="nu0">5</span><span class="sy0">,</span> <span class="st0">&#39;tag&#39;</span> <span class="sy0">=&gt;</span> the_slug<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re1">$relatedposts</span> <span class="kw1">as</span> <span class="re1">$post</span><span class="br0">&#41;</span> <span class="sy0">:</span> setup_postdata<span class="br0">&#40;</span><span class="re1">$post</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="kw2">?&gt;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="sy0">&lt;</span>h2<span class="sy0">&gt;&lt;</span>a href<span class="sy0">=</span><span class="st0">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span> <span class="kw2">class</span><span class="sy0">=</span><span class="st0">&quot;ctaurls&quot;</span><span class="sy0">&gt;&lt;</span>?php the_title<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span> ?<span class="sy0">&gt;&lt;/</span>a<span class="sy0">&gt;&lt;/</span>h2<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span> <span class="kw1">endforeach</span><span class="sy0">;</span> <span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/blog/dynamically-get-the-slug-of-the-current-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Custom Taxonomy to Archive Page</title>
		<link>http://www.eileencarpenter.net/blog/add-custom-taxonomy-to-archive-page</link>
		<comments>http://www.eileencarpenter.net/blog/add-custom-taxonomy-to-archive-page#comments</comments>
		<pubDate>Mon, 14 Feb 2011 19:16:16 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=674</guid>
		<description><![CDATA[So I know that this is going to come out in 3.1 but for anyone who needs this currently this might be helpful. I was building a site that had a custom taxonomy of say &#8220;portfolio types&#8221; and I made an archive for that page (taxonomy-portfolio-types.php). You&#8217;d think that the body class would automatically be [...]]]></description>
			<content:encoded><![CDATA[<p>So I know that this is going to come out in 3.1 but for anyone who needs this currently this might be helpful. I was building a site that had a custom taxonomy of say &#8220;portfolio types&#8221; and I made an archive for that page (taxonomy-portfolio-types.php). You&#8217;d think that the body class would automatically be <code><body class="archive portfolio-types"></body></code> but alas it was just &#8220;archive&#8221;. Not very useful if you want to style some part of the header or footer slightly differently than your other archive pages without writing conditionals into them. Well here&#8217;s how to add &#8220;portfolio-types&#8221; or your own taxonomy into your body class. </p>
<p><em>Note: Add this code into your functions.php</em></p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1">add_filter<span class="br0">&#40;</span> <span class="st0">&#39;body_class&#39;</span><span class="sy0">,</span> <span class="st0">&#39;add_tax_bodyclass&#39;</span> <span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">function</span> add_tax_bodyclass<span class="br0">&#40;</span> <span class="re1">$classes</span> <span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="kw1">if</span><span class="br0">&#40;</span> is_archive<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">&amp;&amp;</span> is_tax<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">==</span> <span class="st0">&#39;portfolio-types&#39;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="re1">$classes</span><span class="br0">&#91;</span><span class="br0">&#93;</span> <span class="sy0">=</span> &nbsp;<span class="st0">&#39;portfolio-types&#39;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="kw1">return</span> <span class="re1">$classes</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/blog/add-custom-taxonomy-to-archive-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Hosting!!</title>
		<link>http://www.eileencarpenter.net/blog/new-hosting</link>
		<comments>http://www.eileencarpenter.net/blog/new-hosting#comments</comments>
		<pubDate>Tue, 14 Dec 2010 19:03:26 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=671</guid>
		<description><![CDATA[I&#8217;ve got new hosting, yay!
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got new hosting, yay!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/blog/new-hosting/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorry it&#8217;s been awhile</title>
		<link>http://www.eileencarpenter.net/blog/sorry-its-been-awhile</link>
		<comments>http://www.eileencarpenter.net/blog/sorry-its-been-awhile#comments</comments>
		<pubDate>Sun, 12 Dec 2010 02:16:59 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=657</guid>
		<description><![CDATA[I realized the other day it&#8217;s been a long time since I&#8217;ve updated my blog. I&#8217;ve learned lots of new things about wordpress and will be updating on them during the holiday. In the meantime enjoy some lovely photos I took while in Chicago 2 months ago.




]]></description>
			<content:encoded><![CDATA[<p>I realized the other day it&#8217;s been a long time since I&#8217;ve updated my blog. I&#8217;ve learned lots of new things about wordpress and will be updating on them during the holiday. In the meantime enjoy some lovely photos I took while in Chicago 2 months ago.</p>
<p><img src="http://www.eileencarpenter.net/wp-content/uploads/2010/12/the_butt.jpg" alt="" title="the_butt" width="600" class="aligncenter size-medium wp-image-658" /><br />
<img src="http://www.eileencarpenter.net/wp-content/uploads/2010/12/chicago_at_night_3.jpg" alt="" title="chicago_at_night_3" width="600" class="aligncenter size-full wp-image-661" /><br />
<img src="http://www.eileencarpenter.net/wp-content/uploads/2010/12/chicago_at_night_2.jpg" alt="" title="chicago_at_night_2" width="600" class="aligncenter size-full wp-image-660" /><br />
<img src="http://www.eileencarpenter.net/wp-content/uploads/2010/12/chicago_at_night_1.jpg" alt="" title="chicago_at_night_1" width="600" class="aligncenter size-full wp-image-659" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/blog/sorry-its-been-awhile/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Worpdress: Building a JQuery Slideshow without a plugin</title>
		<link>http://www.eileencarpenter.net/blog/worpdress-building-a-jquery-slideshow-without-a-plugin</link>
		<comments>http://www.eileencarpenter.net/blog/worpdress-building-a-jquery-slideshow-without-a-plugin#comments</comments>
		<pubDate>Thu, 19 Aug 2010 16:09:15 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[cycle]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[no plugins]]></category>
		<category><![CDATA[slideshow]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=637</guid>
		<description><![CDATA[Recently, I had to add a slideshow to a wordpress site. It was a pretty simple request: it had to utilize the automatic wordpress gallery functionality in each page/post, needed to pull the image, image title, and image description using a fade out/fade in, and the client did not want it to be in flash. [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I had to add a slideshow to a wordpress site. It was a pretty simple request: it had to utilize the automatic wordpress gallery functionality in each page/post, needed to pull the image, image title, and image description using a fade out/fade in, and the client did not want it to be in flash. </p>
<p>I searched endlessly through plugins only to be disappointed. Some don&#8217;t work well or AT ALL with Wordpress 3.0; some won&#8217;t even install. Some don&#8217;t use the gallery function, therefore can&#8217;t have different slideshows on different pages. Some of the best ones were flash, so that wouldn&#8217;t work. And others just only called the image, while the functionality of one just didn&#8217;t make sense. Now I don&#8217;t want to call anyone out and call their hard work, bad work, so I won&#8217;t link any of the offending plugins here. </p>
<p>I began thinking; it cannot be that hard to build a slideshow in wordpress using the functionality that already exists. Besides if I didn&#8217;t use a plugin it wouldn&#8217;t break/would be easier to fix after a wordpress update. So using the <a href="http://jquery.malsup.com/cycle/" target="_blank">jQuery cycle plugin</a> I utilized wordpress&#8217;s built in calls and made my own 100% dynamic, married to gallery functionality slideshow. </p>
<p>Now onto the good part, how it&#8217;s done:</p>
<p>Go to the jQuery cycle page and download the necessary files/get links for necessary js. You&#8217;ll need to put the jQuery source and the jquery cycle scripts into your header and then call it in the document ready function as shown below:</p>
<div class="geshi no xhtml">
<ol>
<li class="li1">
<div class="de1">&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;script type=&quot;text/javascript&quot; src=&quot;path/to/cycle/jquery.cycle.all.min.js&quot;&gt;&lt;/script&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;script type=&quot;text/javascript&quot;&gt;
</div>
</li>
<li class="li1">
<div class="de1">$(document).ready(function() {
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; $(&#39;.slideshow&#39;).cycle({
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; fx: &#39;fade&#39; // choose your transition type, ex: fade, scrollUp, shuffle, etc&#8230;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;});
</div>
</li>
<li class="li1">
<div class="de1">});
</div>
</li>
<li class="li1">
<div class="de1">&lt;/script&gt;</div>
</li>
</ol>
</div>
<p>So here&#8217;s the hard part, figuring out exactly how to call the image, title and description. I&#8217;m sure this would have been a lot easier if i actually knew PHP (don&#8217;t worry I&#8217;m learning), but each time I figure something out, PHP makes a little more sense. </p>
<p>In your template file after <em>if (have_posts)&#8230;</em> add the following code:</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$args</span> <span class="sy0">=</span> <span class="kw3">array</span><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="st0">&#39;post_type&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;attachment&#39;</span><span class="sy0">,</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="st0">&#39;numberposts&#39;</span> <span class="sy0">=&gt;</span> <span class="nu0">-1</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="st0">&#39;post_status&#39;</span> <span class="sy0">=&gt;</span> <span class="kw2">null</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="st0">&#39;title&#39;</span> <span class="sy0">=&gt;</span> <span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">post_title</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="st0">&#39;post_parent&#39;</span> <span class="sy0">=&gt;</span> <span class="re1">$post</span><span class="sy0">-&gt;</span><span class="me1">ID</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="st0">&#39;description&#39;</span> <span class="sy0">=&gt;</span> <span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">post_content</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#41;</span><span class="sy0">;</span> </div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$attachments</span> <span class="sy0">=</span> get_posts<span class="br0">&#40;</span><span class="re1">$args</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">if</span> <span class="br0">&#40;</span><span class="re1">$attachments</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">foreach</span> <span class="br0">&#40;</span><span class="re1">$attachments</span> <span class="kw1">as</span> <span class="re1">$attachment</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw3">echo</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;div&gt;&#39;</span><span class="sy0">,</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&#39;</span> <span class="sy0">.</span>the_attachment_link<span class="br0">&#40;</span><span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">ID</span><span class="sy0">,</span> <span class="re1">$size</span> <span class="sy0">=</span> <span class="st0">&#39;full&#39;</span><span class="sy0">,</span> <span class="re1">$attr</span> <span class="sy0">=</span> <span class="st0">&#39;&#39;</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#41;</span><span class="sy0">.</span> &nbsp;<span class="st0">&#39;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;h2&gt;&#39;</span> <span class="sy0">.</span><span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">post_title</span> <span class="sy0">.</span> <span class="st0">&#39;&lt;/h2&gt;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;p&gt;&#39;</span> <span class="sy0">.</span> <span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">post_content</span> <span class="sy0">.</span> <span class="st0">&#39;&lt;/p&gt;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;/div&gt; &#39;</span> <span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="br0">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
<p>Now let&#8217;s break down the code:</p>
<p>post_type => attachment : tells wordpress database to call the attachment instead of post content<br />
numberposts => -1 : call all attachments<br />
post_status => null : can be changed to draft, published, etc<br />
title => $attachment->post_title : defines the title of the attachment<br />
post_parent => $post->ID : defines the current post<br />
description => $attachment->post_content : calls the images description</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1">&nbsp;<span class="kw3">echo</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;div&gt;&#39;</span><span class="sy0">,</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&#39;</span> <span class="sy0">.</span>the_attachment_link<span class="br0">&#40;</span><span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">ID</span><span class="sy0">,</span> <span class="re1">$size</span> <span class="sy0">=</span> <span class="st0">&#39;full&#39;</span><span class="sy0">,</span> <span class="re1">$attr</span> <span class="sy0">=</span> <span class="st0">&#39;&#39;</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#41;</span><span class="sy0">.</span> &nbsp;<span class="st0">&#39;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;h2&gt;&#39;</span> <span class="sy0">.</span><span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">post_title</span> <span class="sy0">.</span> <span class="st0">&#39;&lt;/h2&gt;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;p&gt;&#39;</span> <span class="sy0">.</span> <span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">post_content</span> <span class="sy0">.</span> <span class="st0">&#39;&lt;/p&gt;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;/div&gt; &#39;</span> <span class="sy0">;</span></div>
</li>
</ol>
</div>
<p>This part says find all of the above and then display as written: find the image, make the size full (can be changed the thumb etc), find the title and wrap it in an h2, find the description and wrap that in the p tags, and finally wrap the entire thing in a div. Now I&#8217;m not sure why, but the 2 single quotes before and after the_attachment_link were necessary to make it not break. If you wanted to wrap just the image in say a div class then you could do this:</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1">&nbsp;<span class="kw3">echo</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;div&gt;&#39;</span><span class="sy0">,</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;div class=&quot;image-class&quot;&gt;&#39;</span> <span class="sy0">.</span>the_attachment_link<span class="br0">&#40;</span><span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">ID</span><span class="sy0">,</span> <span class="re1">$size</span> <span class="sy0">=</span> <span class="st0">&#39;full&#39;</span><span class="sy0">,</span> <span class="re1">$attr</span> <span class="sy0">=</span> <span class="st0">&#39;&#39;</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">&#41;</span><span class="sy0">.</span> &nbsp;<span class="st0">&#39;&lt;/div&gt;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;h2&gt;&#39;</span> <span class="sy0">.</span><span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">post_title</span> <span class="sy0">.</span> <span class="st0">&#39;&lt;/h2&gt;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;p&gt;&#39;</span> <span class="sy0">.</span> <span class="re1">$attachment</span><span class="sy0">-&gt;</span><span class="me1">post_content</span> <span class="sy0">.</span> <span class="st0">&#39;&lt;/p&gt;&#39;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#39;&lt;/div&gt; &#39;</span> <span class="sy0">;</span></div>
</li>
</ol>
</div>
<p>So that&#8217;s my sans plugin wordpress slideshow. Questions?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/blog/worpdress-building-a-jquery-slideshow-without-a-plugin/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Oh Microsoft, you try too hard.</title>
		<link>http://www.eileencarpenter.net/blog/oh-microsoft-you-try-too-hard</link>
		<comments>http://www.eileencarpenter.net/blog/oh-microsoft-you-try-too-hard#comments</comments>
		<pubDate>Fri, 09 Jul 2010 18:35:53 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=630</guid>
		<description><![CDATA[So I saw the ad on the left in the New York Times the other day and I just had to make something funny out of it. 
So what you get is the one on the right. Yea that&#8217;s right Microsoft computers/software, I hate you. Thanks for converting me to mac.

]]></description>
			<content:encoded><![CDATA[<p>So I saw the ad on the left in the New York Times the other day and I just had to make something funny out of it. </p>
<p>So what you get is the one on the right. Yea that&#8217;s right Microsoft computers/software, I hate you. Thanks for converting me to mac.</p>
<p><img src="http://www.eileencarpenter.net/wp-content/uploads/2010/07/ha.jpg" alt="Miscrosoft and viruses" title="Miscrosoft and viruses" width="604" height="252" class="alignnone size-full wp-image-631" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/blog/oh-microsoft-you-try-too-hard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The internet isn&#8217;t the problem, you are.</title>
		<link>http://www.eileencarpenter.net/blog/the-internet-isnt-the-problem-you-are</link>
		<comments>http://www.eileencarpenter.net/blog/the-internet-isnt-the-problem-you-are#comments</comments>
		<pubDate>Sat, 03 Jul 2010 19:06:58 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[cyberbullying]]></category>
		<category><![CDATA[formspring]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[nytimes]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[survival]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=623</guid>
		<description><![CDATA[Your kids don't need to be cool, because you know what, it's the non-cool kids that try harder, and are more determined, and will make something of themselves. They're going to face adversity and bullying, but you can protect them from some of the torture they're inevitably going to endure. If you allow your kids to have complete control of their internet life at an early age you're a contributer.  Like I said it's not the internet that's the problem, it's you, for letting your kid have unfettered, unfiltered access to the world. You're not their friends, you're their parents. ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been reading a lot of articles lately about children cyberbullying through methods of social media; Facebook, Myspace, Twitter, Formspring, blah blah blah. I could go on forever. One of the articles I&#8217;m referencing is <a href="http://www.nytimes.com/2010/06/28/style/28bully.html?_r=1&#038;scp=1&#038;sq=formspring&#038;st=cse" target="_blank">here</a> on the New York Times website. </p>
<p>After reading these articles I thought about my own experiences with growing up in the beginning age of the internet popularity. It was very early on that I realized the dangers of cyberbullying and withdrew myself from the drama as fast as possible, but I&#8217;m not going to deny that it didn&#8217;t hurt. In my day, it was Livejournal that all the kids were into. It was an online journal, in all senses a blog really, and many other kids didn&#8217;t understand the ramifications of writing hurtful things about one another. You had the choice to make an entirely private blog, or one that could be read by only friends, or have it open to the entire public internet. Many chose to have it open to the public and the problem with this was all you really needed to know was who someone else was friends with to find their live journal. I soon learned I could find things were people were saying about me that I didn&#8217;t want to or need to know. Why did I need to know that whats-her-name liked my ex-boyfriend or that such-and-such thought I was a &#8220;stupid bitch&#8221;. Luckily, when Myspace came along, we were all a little more adult and I had learned some valuable lessons.</p>
<p>The one reason I survived this is because for a few years through high school the internet wasn&#8217;t something I was really allowed to use a lot. I wasn&#8217;t allowed to have AIM, even though <em>all</em> the kids did. I had limited internet access and I wasn&#8217;t allowed to sign up for anything I wanted to on the internet. You&#8217;re probably thinking I could just sign up for it and they would never, know right? No, wrong, my parents checked my email. Yes this sucked and I hated it, but they were protecting me and it worked. </p>
<p>Do NOT be afraid to not allow your kids to do whatever they want. Formspring isn&#8217;t the problem, you are. If it&#8217;s not that it&#8217;s going to be something else. Why does your 10 year old have an ipod touch with unfettered access to the intenet, music, texting, and all else. Why does your 10 year old have a cell phone? When did I get a cell phone? I think I was 16. Maybe older. And look, I survived. The worst part is you probably don&#8217;t know what formspring is. It&#8217;s a site  where you allow other people to write anonymous things about you. And your kids aren&#8217;t smart enough to know that&#8217;s not something they want to be involved in.</p>
<p>Your kids don&#8217;t need to be cool, because you know what, it&#8217;s the non-cool kids that try harder, and are more determined, and will make something of themselves. They&#8217;re going to face adversity and bullying, but you can protect them from some of the torture they&#8217;re inevitably going to endure. If you allow your kids to have complete control of their internet life at an early age you&#8217;re a contributer.  Like I said it&#8217;s not the internet that&#8217;s the problem, it&#8217;s you, for letting your kid have unfettered, unfiltered access to the world. You&#8217;re not their friends, you&#8217;re their parents. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/blog/the-internet-isnt-the-problem-you-are/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just One More Reason IE6 Can Suck It&#8230;</title>
		<link>http://www.eileencarpenter.net/blog/just-one-more-reason-ie6-can-suck-it</link>
		<comments>http://www.eileencarpenter.net/blog/just-one-more-reason-ie6-can-suck-it#comments</comments>
		<pubDate>Fri, 18 Jun 2010 16:42:24 +0000</pubDate>
		<dc:creator>Eileen M. Carpenter</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.eileencarpenter.net/?p=621</guid>
		<description><![CDATA[Anyone who knows me, and I mean anyone (even people who are unfamiliar with web lingo) and everyone knows I loathe IE6. I didn&#8217;t even attempt to make this website accessible to IE6, because I just don&#8217;t care enough to destroy my code so you can see it.  Every website I build for my [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone who knows me, and I mean anyone (even people who are unfamiliar with web lingo) and everyone knows I loathe IE6. I didn&#8217;t even attempt to make this website accessible to IE6, because I just don&#8217;t care enough to destroy my code so you can see it.  Every website I build for my job at <a href="http://www.evolvingmedia.net"  target="_blank">Evolving Media Network</a> involved at least 8 hours of debugging for IE6, and that&#8217;s on a good day. </p>
<p>This past week I was working on a site and came across the strangest problem, ie6 wouldn&#8217;t even load, it just crashed no matter what page of the site I was on. So I went on a mission to find out why. Eventually by process of removing and replacing parts of the site, I discovered it was crashing because of the signup form. A signup form?! I hadn&#8217;t even linked it yet. It was just html and css. Basic. </p>
<p>So I started rebuilding the form. So far so good. Now this form has 4 fields, First Name, Last Name, Zip Code, and Email address. I decided I wanted to build it from the bottom up. Email address. Check. No crash. Zip code. Check. No crash. Last Name. <strong>Boom. Dead.</strong> There was nothing wrong with this newest field, the Last Name, since it was copied and pasted from Zip code. </p>
<p>I was convinced it was javascript, there was plenty in the header, even some not related to the form. I removed <em>all</em> of it. Every possible offending piece. Boom. Dead. Still. </p>
<p>I cannot take credit for figuring it out. It was another coworker that discovered the offending line of code that was causing ie6 to die. Wait for it. A single line of css on the input class&#8230;&#8221;float:left;&#8221;. Are you serious? IE6 taken down by a simple float:left;. </p>
<p>If anyone out there has ANY idea why this would happening please let me know. It was easy enough to fix, I am just curious why it happened. The only thing I could find was something <a href="http://raventools.com/blog/2675/crash-ie6-with-only-css" target="_blank">about Transitional doctype sending IE6 into quirks mode</a>, but that doesn&#8217;t completely explain it for me.</p>
<p>The fact that a float:left can bring ie6 to a screeching halt just adds fuel to my fiery battle against IE6.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eileencarpenter.net/blog/just-one-more-reason-ie6-can-suck-it/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

