<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: UPDATE - v 1.0.2 for The Daily Press (fixes media search)</title>
		<link>http://www.themolitor.com/forums/topic/v-102-update-for-the-daily-press-fixes-media-search</link>
		<description>THE MOLITOR FORUMS &#187; Topic: UPDATE - v 1.0.2 for The Daily Press (fixes media search)</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 22:20:49 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/v-102-update-for-the-daily-press-fixes-media-search" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "UPDATE - v 1.0.2 for The Daily Press (fixes media search)"</title>
			<link>http://www.themolitor.com/forums/topic/v-102-update-for-the-daily-press-fixes-media-search#post-13077</link>
			<pubDate>Mon, 23 Jul 2012 10:04:56 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">13077@http://www.themolitor.com/forums/</guid>
			<description><p>This update addresses an issue with searching media files in the WordPress dashboard. v 1.0.2 of The Daily Press has the following changes...</p>
<ol>
<li>Open functions.php.</li>
<li>On line 54 locate the following...<br />
<pre><code>//EXCLUDE PAGES FROM SEARCH
function SearchFilter($query) {
if ($query-&#62;is_search) {
$query-&#62;set(&#039;post_type&#039;, &#039;post&#039;);
}
return $query;
}
add_filter(&#039;pre_get_posts&#039;,&#039;SearchFilter&#039;);</code></pre>
</li>
<li>...change it to the following (notice the new if statement at the beginning and the extra bracket at the end)...<br />
<pre><code>//EXCLUDE PAGES FROM SEARCH
if (!is_admin()){
function SearchFilter($query) {
if ($query-&#62;is_search) {
$query-&#62;set(&#039;post_type&#039;, &#039;post&#039;);
}
return $query;
}
add_filter(&#039;pre_get_posts&#039;,&#039;SearchFilter&#039;);
}</code></pre>
</li>
<li>Open "style.css" and change the version number towards the top form 1.0.1 to 1.0.2</li>
<li>Save and you're done.</li>
</ol></description>
		</item>

	</channel>
</rss>
