Filtering posts per custom fields
Filtering posts per values in custom fields enables displaying only posts that meet certain criteria. Let’s take a look at the example of a real estate website.
If we talk about houses, it is possible to, for example, display posts with houses that have more than 2 and less than 5 rooms. Or it is possible to display only posts with houses whose price is equal or bigger than $100.000 and less than $500.000. Or it is possible to display only houses that are located in New York. Or it is possible to display only houses that meet all the criteria mentioned above.
Posts can be filtered per custom fields in EasyDNNnews > Settings > 4. Filter articles. Select the Filter by custom field option. Then select a custom field group and a custom field from this group per which you want to filter posts. Click on the Add button. The custom field will appear on the list below and then you can configure the criteria of filtering for it. The possible criteria depend on the type of custom fields.