Skip to content
Public Ticket #16375

Search function is returning post only, not pages

Conversation thread

cherde replied

Customer Reply

Many thanks! I should have found that myself. I was looking for quite some time, but there are so many options...
On the other hand, that's just the strong point of Soledad.

Best regards, Christian

PenciDesign replied

Staff Reply

Hi,

Thank you for loving our theme.

Yeah, by default we’ve exclude all pages from the search results. If you want to include pages on the search results, please go to Customize > General > General Settings > and check to “Include pages on search results”


Best Regards,

PenciDesign

cherde started the conversation

Conversation Start

I just notived that the search function of my soledad website is only returning posts, not pages. Is this intended behaviour or a bug? I'm new to wordpress and may have overlooked a switch which controls this behavior.

I found this solution on stackoverflow.com. Adding the code snippet provided in the answer to functions.php in the soledad child theme solves the problem. Or is there a better way to do this?

By the way: Many thanks for the beautiful theme! Your work is much appreciated!

Want to join this conversation or access attachments? Sign in first.