- This topic has 2 replies, 2 voices, and was last updated 10 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Customising Results Page
Hi,
I’m looking to customise the results page, so I can add the term to the results title. Ie, we’re using this for a dropdown to filter Restaurant types, and we’d love the results to say something like “Pubs in…”, or “Cafes in…”.
get_queried_object(); shows up as NULL on these pages (unless I’m doing something wrong) – so I can’t pull the category title. All I get is all the metadata, which as far as I can find can’t be echoed out – just used for the results loop. Is that right?
What can I do to solve this please?
Thanks!
Hi Dave
What method are you using for displaying results?
If you are using archive you should be able to grab the data by using the global $wp_query.
global $wp_query;
var_dump($wp_query->query);
Thanks