• 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,
    Simon

    https://ww.wp.xz.cn/plugins/contact-form-7-to-database-extension/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    I don’t think WordPress will let you embed a shortcode inside the brackets of another one.

    Thread Starter Fabbstar

    (@fabbstar)

    Hi Michael, I think you are right. Nothing seems to work.

    Does CFDB have a parameter that will allow me to see if a date in a cell is 4 months away, and then display that result?

    I may need to get creative…

    S

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Creating a date shortcode and using it to filter tables’ is closed to new replies.