I created a table that displays sales data by month for a selected year using a form. It has a column for month and amount. I wanted to use a shortcode to display the selected year in the heading of the column.
I added the shortcode on the "Displayed header" section of the settings but it just returns pure text despite enabling processing of shortcodes in the plugin settings. I want something like this:
MONTH (2017) | AMOUNT ----------------------------------------------- January | 25,000 February | 57,400
What I get is this:
MONTH ([selected_year]) | AMOUNT ----------------------------------------------- January | 25,000 February | 57,400
I created a table that displays sales data by month for a selected year using a form. It has a column for month and amount. I wanted to use a shortcode to display the selected year in the heading of the column.
I added the shortcode on the "Displayed header" section of the settings but it just returns pure text despite enabling processing of shortcodes in the plugin settings. I want something like this:
MONTH (2017) | AMOUNT
-----------------------------------------------
January | 25,000
February | 57,400
What I get is this:
MONTH ([selected_year]) | AMOUNT
How can this be achieved?-----------------------------------------------
January | 25,000
February | 57,400
HI Lethalmiko,
Thank you for your purchase.
Unfortunately shortcodes in the column headers are not possible with the plugin built in features at the moment.
There is a option to parse the shortcode as a string but only on table content or on page or post, but not in the display column name.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Kindly look into adding this feature in future. Thanks.
HI Lethalmiko,
Your suggestion is added on our TODO list.
Thank you for sharing your ideas with us.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables