We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Slack: Pro search filter using search:approved="true" not working

How Do I?

From EE Slack's avatar
From EE Slack
185 posts
9 months ago
From EE Slack's avatar From EE Slack

My exp:pro_search:results are working, but I need to exclude entries based on a field called ‘approved’ (values true|false). I thought I could add this to the search results tag using search:approved=”true”, but it doesn’t seem to work. How can I ensure entries with {approved} value of false are not included?

Interested in learning more solutions or want to get to know other EE users? Read more about joining the slack here! Join Our Slack!

       
From EE Slack's avatar
From EE Slack
185 posts
9 months ago
From EE Slack's avatar From EE Slack

The issue was that entries with the {approved} field value of false were sneaking into the search results. The solution is to ensure that the {approved} field is set to Searchable in your settings. Once that is done, your filtering should work as expected.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.