Sorting/Filtering by Custom Fields

Tagged: 

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: 207

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.3.10 is now available

9th November 2023

MasterPress 1.3.10 is a feature and bugfix release. Workaround for fatal error introduced by changes to WordPress’ wpdb class in WordPress 6.4. Added actions to MPC files upload_field & WF image save_image functions.

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

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.

Three AM