Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics

Generic template for post type

Would it be possible in the (near) future to have something like a generic columns sets template which could be used for any post types when no specific column set has been made? Right now we have over 10 custom post types above the standard ones for which I have to redo all lists overviews again if I need to change or add a column.
If we could just have a generic column set which could be used as base template to build upon (with specific fields/settings for that custom post type), then that’d save quite a lot of time.
I know we can use export/import, but that’s not quite the same and actually quite cumbersome to be honest.

9 months, 2 weeks ago
Stefan van den Dungen Gronovius

Since version 6.3 we have something that could work for this use case. It makes use of our File Storage feature in combination with loading columns dynamically with the following hook:


As you can see in the example on the page above, the same column set is loaded for two post types, but of course you can also loop through all post types. The settings in the callback are in the format that is used in export and Local Storage. So you can setup Local Storage to get the settings in PHP format to load them afterward in the hook. The important thing is that the ID is unique, for every post type.

I hope that this information helps you to better maintain different sets for different post types.

9 months, 2 weeks ago

You must be logged in to reply to this topic.