<?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: Using custom CSS and Javascript in WordPress posts</title>
	<atom:link href="http://www.ianhoar.com/2011/04/02/using-custom-css-and-javascript-in-wordpress-posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ianhoar.com/2011/04/02/using-custom-css-and-javascript-in-wordpress-posts/</link>
	<description>Technology, Web, Toys, Games, Design, Entertainment, Gadgets, &#38; Geeking Out</description>
	<lastBuildDate>Thu, 17 May 2012 16:28:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tracey</title>
		<link>http://www.ianhoar.com/2011/04/02/using-custom-css-and-javascript-in-wordpress-posts/comment-page-1/#comment-43353</link>
		<dc:creator>Tracey</dc:creator>
		<pubDate>Tue, 13 Dec 2011 21:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4279#comment-43353</guid>
		<description>I occasionally embed a SWF file in a post.  I&#039;ve been looking for a method of including the javascript in the  of the page without cluttering my header.php file with the javascript for each SWF file.

I thought this method was perfect for my purposes with a little tweaking.  I removed the &quot;If single&quot; condition.  However, I found that it only works when the post is the 1st post on the index page.  It still works on the single page but I need it to work on the Home page while the post appears there (I show the 5 most recent posts on the Home page).

How can I accomplish this?

Thanks for any help you can give me!</description>
		<content:encoded><![CDATA[<p>I occasionally embed a SWF file in a post.  I&#8217;ve been looking for a method of including the javascript in the  of the page without cluttering my header.php file with the javascript for each SWF file.</p>
<p>I thought this method was perfect for my purposes with a little tweaking.  I removed the &#8220;If single&#8221; condition.  However, I found that it only works when the post is the 1st post on the index page.  It still works on the single page but I need it to work on the Home page while the post appears there (I show the 5 most recent posts on the Home page).</p>
<p>How can I accomplish this?</p>
<p>Thanks for any help you can give me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.ianhoar.com/2011/04/02/using-custom-css-and-javascript-in-wordpress-posts/comment-page-1/#comment-42886</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sat, 03 Dec 2011 12:47:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4279#comment-42886</guid>
		<description>Smart! All the custom CSS I put in WordPress editor (HTML view) will be removed by WordPress automatically when switching views. This did the trick. 
@Warren, if you use jQuery document ready function, you shouldn&#039;t have javascript errors when putting on the header. 

Cheers,</description>
		<content:encoded><![CDATA[<p>Smart! All the custom CSS I put in WordPress editor (HTML view) will be removed by WordPress automatically when switching views. This did the trick.<br />
@Warren, if you use jQuery document ready function, you shouldn&#8217;t have javascript errors when putting on the header. </p>
<p>Cheers,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Warren</title>
		<link>http://www.ianhoar.com/2011/04/02/using-custom-css-and-javascript-in-wordpress-posts/comment-page-1/#comment-38680</link>
		<dc:creator>Warren</dc:creator>
		<pubDate>Fri, 19 Aug 2011 14:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ianhoar.com/?p=4279#comment-38680</guid>
		<description>Awesome stuff. That helped me a ton. I had a script that I needed to run only on posts but it was breaking every other page that didn&#039;t have the elements it called. What made it more difficult is that it had a secondary  element that needed to be called to activate the script. So I added the code above to footer.php, changing customer_header to custom_footer and adding that as a second custom field to the post and it worked perfectly. 

So if you ever have a script that also has a  call which WordPress adds all sorts of CData bits to, call it from footer.php.</description>
		<content:encoded><![CDATA[<p>Awesome stuff. That helped me a ton. I had a script that I needed to run only on posts but it was breaking every other page that didn&#8217;t have the elements it called. What made it more difficult is that it had a secondary  element that needed to be called to activate the script. So I added the code above to footer.php, changing customer_header to custom_footer and adding that as a second custom field to the post and it worked perfectly. </p>
<p>So if you ever have a script that also has a  call which WordPress adds all sorts of CData bits to, call it from footer.php.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

