Creating a date shortcode and using it to filter tables
-
Hi Michael,
I hope you are well?
I was wondering if you could help. I’m trying to create a filter or search that finds dates in a cell that are 4 months away.
I’ve created a shortcode to print a month and year that is 4 months away:
echo date('m-Y',strtotime('+4 months'));For example, this prints: 12-2016
I then use this shortcode within the filter and search of a datatable shortcode however it doesn’t seem to recognise this as a shortcode.
For example, the CFDB shortcode I have on the page is:
[cfdb-datatable filter=”Username=$user_login” Search=”[4months]” form=”Form Name” show=”Customer,Value,Renewal”]
Any ideas?
Thanks,
Simonhttps://ww.wp.xz.cn/plugins/contact-form-7-to-database-extension/
The topic ‘Creating a date shortcode and using it to filter tables’ is closed to new replies.