<?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>m Archives - Nick Shaw</title>
	<atom:link href="https://www.nick-shaw.co.uk/tag/m/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description></description>
	<lastBuildDate>Mon, 18 Jan 2016 09:24:48 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">150481139</site>	<item>
		<title>Add search to main WordPress menu</title>
		<link>https://www.nick-shaw.co.uk/add-search-main-wordpress-menu/</link>
					<comments>https://www.nick-shaw.co.uk/add-search-main-wordpress-menu/#respond</comments>
		
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Mon, 18 Jan 2016 09:24:48 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[m]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://www.nick-shaw.co.uk/?p=2096</guid>

					<description><![CDATA[<p>Add this to your functions file to add search to the main menu of your website.</p>
<p>The post <a href="https://www.nick-shaw.co.uk/add-search-main-wordpress-menu/">Add search to main WordPress menu</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Add this to your functions file to add search to the main menu of your website.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php 
//add search to menu
function se_add_search_box_to_menu( $items, $args ) {
    if ( $args-&gt;theme_location === 'main' )
        return $items . get_search_form();

    return $items;
}
add_filter( 'wp_nav_menu_items', 'se_add_search_box_to_menu', 10, 2 );
?&gt;
</pre>
<p>The post <a href="https://www.nick-shaw.co.uk/add-search-main-wordpress-menu/">Add search to main WordPress menu</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nick-shaw.co.uk/add-search-main-wordpress-menu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2096</post-id>	</item>
	</channel>
</rss>
