Sorting/Filtering by Custom Fields

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  sitesurety 2 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
June 24, 2013 at 2:59 pm #3234
OM4
Post count: 13

Hi Trav,

MasterPress provides great functionality for creating new fields and adding them to the list/posts dashboard view.

However, once a CPT list has more than a few entries in it it becomes unworkable without some sort of filter/sort feature. Most of the uses I can see for Masterpress would need this type of functionality.

The All in One Events Calendar plugin provides this functionality nicely… you can filter events by event category and you can sort by event date/time.

For example, I have a “Tours” custom post type defined, with many custom fields assigned to it.

See
https://dl.dropboxusercontent.com/s/2oln51guuyjafon/masterpress-tours-columns.png
https://dl.dropboxusercontent.com/s/6uy45tra8yw2g6m/tours.png

I think it is really important that the content creator can filter and sort the CPT list entries by newly added fields (regardless whether the fields are categories, tags, taxonomies, custom fields or field sets).

For example, I may want to sort that screen by Tour date.

Do you have any plans to add sorting options to MasterPress? Possibly on the Edit Post Type screen, you could have a sortable/filterable checkbox on each column?

If sortable is ticked, the user can click the table column heading to sort the table by that field.

If filterable is ticked, the user could be presented with a dropdown select box that shows all distinct values for that particular field.

I’m already using the Search Everything plugin to make the custom field data searchable.

Thanks for your assistance.

James

June 24, 2013 at 3:05 pm #3235
traversal
Post count: 205

Hey James. I can certainly see your point – the difficulty with MasterPress as opposed to something like an events plugin is that they can work to more predictable data. It’s certainly not impossible, but the generic nature of the custom fields makes it a bit harder to do.

Noted though, it would be great to have a sortable column at the very least.

August 14, 2013 at 2:00 pm #3303
OM4
Post count: 13

Thanks for your reply Travis.

I can see that if a custom taxonomy is assigned to a custom post type in MasterPress, then the Dashboard screen lets you filter records based on the taxonomy.

Do you think it would be much work to be able to have sortable columns for a few of the predictable custom field types such as text boxes, dates, etc?

James

November 5, 2014 at 4:01 pm #3556
sitesurety
Post count: 13

+1

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Latest From the Blog

MasterPress 1.1.4 now available

MasterPress 1.1.4 is now available. This release contains an important compatibility fix for WordPress 4.5 to allow correct detection of the taxonomy term editing screen. Without this fix, any custom fields you have attached to custom taxonomies will not be shown at all in the editing form. Note also that MasterPress will still detect the edit screen correctly in… 

Plugin Requirements

MasterPress requires a minimum of WordPress version 3.4, MySQL 5, and PHP version 5.2.4.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Traversal