Replies: 0
I discovered that when I modify the search URL, to be specific the “post_type” parameter, I can restrict the search to show only content of that post type. For example:
https://domain.com/?s=test&post_type=post
Here it will only show content with the post type “post”. I use the Plug-in Relevaansi but I’m pretty sure it’s the same way in standard WordPress. What I discovered is that it doesn’t work for ‘page’. When I change the URL like this:
https://domain.com/?s=test&post_type=page
… the post type parameter is completely ignored. Instead results from all post types are shown. Why is that? It works with other post types flawlessly, even custom types. Why not with page?