Pull weblog entries with constrain by custom fields

I just love EE for it’s flexibility and great template parser engine( It’s already rich enough). A few days ago it was needed to show specific entries for a weblog that will not be filtered by category or url title etc. It can be handle in many way such as custom query, php logic etc etc. Although EE query moudle is fantastic one, The core EE( Free EE) doesn’t has this. Actualy it can be handle using parameter as EE weblog module supports to pull data using custom field constraint vale, you have to just pass it as follow –

search:field_name=”value”

So let you have a filed named body and you want to pull entries which has a string “shows”, parameter will be like

search:body=”shows”

It supports more constraints, please check this link

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s