dtroit
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Custom fields in tablesThat would be awesome!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Custom fields in tablesOk I see, thanks!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Custom fields in tablesHey! Thanks for the quick answer!
I’m hooking into the markup and duplicate it in the output to have a different layout of the table on mobile, in my case I create an accordion of the table to make it easier to read the table on mobile. So with this setting I want the user to decide if the accordion items should be grouped by column titles or row titles.
So inside this hook I need to be able to differentiate the two solutions. At the moment I can parse the class of the container but it would have felt better to just have a setting so that the client wouldn’t manually have to type a specific class every time. I guess adding a parameter to the shortcode would be more clear but you still have to type the setting manually instead of for example using a radio button.
Every table gets stored as a post so technically they can have post meta, are there no hooks I can use to output my custom fields then? Like the same way you use the add_meta_box method from your abstract class.
Thanks for your support!
- This reply was modified 2 years ago by dtroit.