Search Page Template

Parameter Functions

For WordPress to accept the ‘posts_per_page’ parameter, it must be added to the list of accepted query parameters. This must be done outside the search form page or the search results page, or else this parameter is ignored.

This section is placed in the ‘functions.php’ file so that it is called whenever a search query is made.

For WordPress to properly parse the category and tag parameters, a second function must be called to convert the query arguments from what is translated by WordPress into strings recognized by the query operation.

This function is placed in the ‘functions.php’ file.

Share
The short URL of the present article is: http://www.terryobrien.me/cnu2p

Page 2 of 4
First | Prev | 1 | 2 | 3 | 4 | Next | Last
View All