<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Number of search results]]></title><description><![CDATA[<p dir="auto">Does WPFTS limit number of search results?<br />
I have set Settings&gt;Read to 100 posts (in WP Admin)<br />
i have added to my child theme's functions.php:<br />
<em>function change_wp_search_size($query) {<br />
if ( $query-&gt;is_search ) // Make sure it is a search page<br />
$query-&gt;query_vars['posts_per_page'] = 50; // Change 10 to the number of posts you would like to show<br />
return $query; // Return our modified query variables<br />
}<br />
add_filter('pre_get_posts', 'change_wp_search_size'); // Hook our custom function onto the request filter</em></p>
<p dir="auto">But i only get 5 results (always, for any keyword, even if there are more results)</p>
<p dir="auto">Kind regards, Marco</p>
]]></description><link>https://fulltextsearch.org/forum/topic/64/number-of-search-results</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 04:29:27 GMT</lastBuildDate><atom:link href="https://fulltextsearch.org/forum/topic/64.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Jan 2021 13:33:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Number of search results on Thu, 21 Jan 2021 12:07:28 GMT]]></title><description><![CDATA[<p dir="auto">i feel stupid now...YES! It works...</p>
]]></description><link>https://fulltextsearch.org/forum/post/161</link><guid isPermaLink="true">https://fulltextsearch.org/forum/post/161</guid><dc:creator><![CDATA[Webwerkplaats]]></dc:creator><pubDate>Thu, 21 Jan 2021 12:07:28 GMT</pubDate></item><item><title><![CDATA[Reply to Number of search results on Thu, 21 Jan 2021 09:39:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/webwerkplaats" aria-label="Profile: webwerkplaats">@<bdi>webwerkplaats</bdi></a></p>
<p dir="auto">The Divi Builder has its own "Number of Posts" settings which overrides your code, I guess.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1611221974332-e20210121-143835-001-1.png" alt="E20210121-143835-001[1].png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Did you try to change that?</p>
]]></description><link>https://fulltextsearch.org/forum/post/160</link><guid isPermaLink="true">https://fulltextsearch.org/forum/post/160</guid><dc:creator><![CDATA[EpsilonAdmin]]></dc:creator><pubDate>Thu, 21 Jan 2021 09:39:57 GMT</pubDate></item><item><title><![CDATA[Reply to Number of search results on Thu, 21 Jan 2021 07:51:02 GMT]]></title><description><![CDATA[<p dir="auto">I'm sorry, no, it doesn't help.<br />
This site is weird. I have made prototype on 1 server. Then copied it 1:1 to another server. There some links don't work. Previous page, Next page pagination and the Divi Theme builder only work when i set permalinks in Wordpress to "Simple".  When i change permalinks to "Post Name" or any other, the site misbehaves. Can't figure it out. Maybe this is also the reason the site doesn't "listen" to my code or your code to expand the number of search results.<br />
Thanks for the help but it seems the error is not in your plugin.</p>
]]></description><link>https://fulltextsearch.org/forum/post/159</link><guid isPermaLink="true">https://fulltextsearch.org/forum/post/159</guid><dc:creator><![CDATA[Webwerkplaats]]></dc:creator><pubDate>Thu, 21 Jan 2021 07:51:02 GMT</pubDate></item><item><title><![CDATA[Reply to Number of search results on Wed, 20 Jan 2021 16:47:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/webwerkplaats" aria-label="Profile: webwerkplaats">@<bdi>webwerkplaats</bdi></a></p>
<p dir="auto">No, WPFTS does not control this parameter.<br />
The reason why you don't see any changes may be because the code is wrong.<br />
Please try this code instead:</p>
<pre><code class="language-PHP">add_action('pre_get_posts', function(&amp;$query)
{
    $query-&gt;set('posts_per_page', 50);
});
</code></pre>
<p dir="auto">Notice: 'pre_get_posts' is an <strong>action</strong> , you don't need to return something from it.<br />
The parameter $query should be sent as reference (with &amp;).</p>
<p dir="auto">Let me know if this helps.</p>
]]></description><link>https://fulltextsearch.org/forum/post/158</link><guid isPermaLink="true">https://fulltextsearch.org/forum/post/158</guid><dc:creator><![CDATA[EpsilonAdmin]]></dc:creator><pubDate>Wed, 20 Jan 2021 16:47:15 GMT</pubDate></item></channel></rss>