Queries

Run advanced searches using WP Query by using filters.


Change posts_per_page on post type archives, search results and other WordPress pages

Modify the posts_per_page parameter according to the current post type or page being viewed

Order WordPress search results by post type

Learn how to order WordPress’ search results by post type with a simple code snippet.

Perform a wildcard search in a WordPress meta query

If you need to run a WordPress meta query where the meta key starts, ends or contains a certain string, you can enable wildcard searches on your site.