Cool Statamic Knowledge- Filtering using custom fields

Filtering using custom fields

Filtering using custom sub fields we have created. The below example shows filtering on a collection using a date field that I had created. The custom field here is “end_date”

{{ collection:blog :end_date:is_before="today" }}

This will filter out any blogs or events etc… that the end_date is set to after today’s date.

If you have content that is edited elsewhere in the CP for a certain section like, phone numbers etc… You can link to them within instructions fields.

[Edit It Here](/cp/globals/company_info)