Searching pages, posts, and categories

Hello there,

How do we set the search function to search through pages, posts, and categories?

Kind Regards,

Spencer

Hi Spencer,

Thanks for reaching out!

I am not quite sure if I understand your question correctly, would you mind sharing more information? Providing videos or screenshot is a big help.

Cheers!

Hi @marc_a,

Thanks for getting back :slight_smile:

The search function only seems to finds one post.

https://bswcarehomeplus.org.uk/?s=respect

But we have 4 or 5 posts and one page for now which contain the term ‘respect’.

Any idea why search is only finding one item?

Kind Regards,

Spencer

Hi Spencer,

Can you please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Apologies, @tristup.

please see the secure note :slightly_smiling_face:

I should have also added that I am using a custom search results page built in the Layout Builder.

Kind Regards,

Spencer

Hi Spencer,

I have checked the Layout and found that you have enabled the Looper Provider which is not required while using the Archive template but you need to enable the Looper Consumer for the child element which you didn’t. I went ahead and enable the Looper Consumer for the Headline and now it is showing all the results.

Thanks

Thanks a million for your help, @tristup, this is good knowledge :slight_smile:

Cheers!

Spencer

Hi Spencer,

Glad that we are able to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.