Forums Forums Search & Filter Pro Customising Results Page

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #17096

    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!

    Ross Moderator
    #17567

    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

    Anonymous
    #19002

    Ah yeh – that does work. Not sure what was going wrong before then…

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)