• Resolved aashto19

    (@aashto19)


    Great plugin.

    However, I’m struggling to display within certain locations.

    Is there a way to combat this problem? I feel like I have tried everything. The issue is that if I enter the shortcode for the calendar in these fields it doesn’t work. It just displays as
    [ics_calendar url=”https://www.pitchup.com/supplier2/pitch/bookings/8671879:DFL-yanlB2IiLb3MxkfkfC-e-Ra7MRbOoRvDIPQBI7E.ics”%5D and not the calendar.

    There must be a solution. I thought it might be to do with defining permissions in the functions.php to allow shortcode or somewhere in the plugin in question but I’m at a miss. Would love to be able to use.

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author room34

    (@room34)

    Hi… the link you shared for “the page I need help with” doesn’t display anything but a logo for me, but I’m going to take a guess that what you are trying to do is add a date picker to a reservation form, is that correct?

    The short answer is, that’s not what this plugin is for, and it can’t do it, at least not directly.

    Date pickers are a complicated kind of “pseudo” form field. They’re not a real form input. Essentially they’re just an HTML table displaying a calendar —?much like what ICS Calendar does —?but they have JavaScript connected to them so that when you click on a date in the calendar, it inserts that date as a text string into a hidden input —?the actual form input.

    That is not to say that ICS Calendar couldn’t be adapted to that purpose. It actually would not be very difficult, except for the fact that it doesn’t presently output the full date (e.g. day-month-year) as a string in the HTML anywhere. Beyond that, a few lines of jQuery/JavaScript code would be all you’d need to make it work with a hidden input in your form. But because this is all highly specific to the details of your form, and what is being done with the data from the form when it’s submitted, it’s not something I could post a code sample for here and expect it to just work.

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode not working in form fields.’ is closed to new replies.