<?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>Richard Pargeter - SEO, Web Development &#38; Affiliate Marketing &#187; Wordpress</title>
	<atom:link href="http://rjpargeter.com/category/web-development/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://rjpargeter.com</link>
	<description></description>
	<lastBuildDate>Wed, 18 Jan 2012 12:59:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Removing wp_head() elements (rel=&#8217;start&#8217;, etc.)</title>
		<link>http://rjpargeter.com/2009/09/removing-wordpress-wp_head-elements/</link>
		<comments>http://rjpargeter.com/2009/09/removing-wordpress-wp_head-elements/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 16:37:36 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Affiliate Related]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://rjpargeter.com/?p=178</guid>
		<description><![CDATA[In customising WordPress you may find a need to occasionally remove or add to the Link elements that WordPress automatically outputs in the function call wp_head(). I&#8217;ve recently had a need to remove the rel=&#8217;prev&#8217; and rel=&#8217;next&#8217; link elements and in trying to avoid customising the core WordPress functions the following solutions works. Ensure you [...]]]></description>
			<content:encoded><![CDATA[<p>In customising WordPress you may find a need to occasionally remove or add to the Link elements that WordPress automatically outputs in the function call wp_head().  I&#8217;ve recently had a need to remove the rel=&#8217;prev&#8217; and rel=&#8217;next&#8217; link elements and in trying to avoid customising the core WordPress functions the following solutions works.</p>
<p>Ensure you have a functions.php file in your theme directory that you are using.  If not create the file and edit the file.  The following lines will help remove select lines from your wp_head() function:<br />
<code><br />
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Removes the links to the extra feeds such as category feeds<br />
remove_action( 'wp_head', 'feed_links', 2 ); // Removes links to the general feeds: Post and Comment Feed<br />
remove_action( 'wp_head', 'rsd_link'); // Removes the link to the Really Simple Discovery service endpoint, EditURI link<br />
remove_action( 'wp_head', 'wlwmanifest_link'); // Removes the link to the Windows Live Writer manifest file.<br />
remove_action( 'wp_head', 'index_rel_link'); // Removes the index link<br />
remove_action( 'wp_head', 'parent_post_rel_link'); // Removes the prev link<br />
remove_action( 'wp_head', 'start_post_rel_link'); // Removes the start link<br />
remove_action( 'wp_head', 'adjacent_posts_rel_link'); // Removes the relational links for the posts adjacent to the current post.<br />
remove_action( 'wp_head', 'wp_generator'); // Removes the WordPress version i.e. - WordPress 2.8.4<br />
</code><br />
Don&#8217;t remove these items unless you have a need to.  The WordPress generator removal could be useful if you are not religiously upgrading your WordPress install as it helps hide the WP version from potential hackers to a certain degree.</p>
]]></content:encoded>
			<wfw:commentRss>http://rjpargeter.com/2009/09/removing-wordpress-wp_head-elements/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

