Adding a Download Button to Additonal Feilds

Home Forums Calendar Products Events Calendar PRO Adding a Download Button to Additonal Feilds

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #959303
    Michelle
    Participant

    So I want to add a custom field to the “add an event” page so users could paste a url in to a “download” field and a “Download Event Program” button would display on the event page.

    Is there a way to do this with the additional fields setting or with Advanced Custom Fields. I have limited knowledge of both and am a noob in php.

    Please help!

    #959400
    Geoff
    Member

    Howdy Michelle! Thanks for getting in touch and welcome to the forums. 🙂

    Good question. Yes, I do believe Advanced Custom Fields would be the way to go here. That will allow you to set up a new field group and assign them to display on Events posts in the editor. You can refer to the ACF documentation for specific instructions and examples on how it works.

    Once you have your fields set up, you can add them directly to the Event template. To do this:

    • Make a copy of the single-event.php template. It is located at /plugins/the-events-calendar/views/single-event.php
    • Make a new folder in your theme directory called tribe-events
    • Drop the copied single-event.php file in that folder

    Now that the Event template is in your theme, you can modify it to suit your needs. In this case, you would include the ACF fields where you would like them to display. Again, ACF has some examples of how to display fields in their documentation.

    Does this help get you started? Please let me know. 🙂

    Cheers!
    Geoff

    #959402
    Michelle
    Participant

    Hi Geoff,

    After digging and digging I found the exact method you described and it worked perfectly!

    Sorry to waste any time.

    Thanks again!

    #959407
    Geoff
    Member

    You’re not wasting my time at all! I’m so glad this worked out and you were able to find something that works. 🙂

    I’ll go ahead and close this thread but please feel free to start a new one if any other questions pop up and we’d be happy to help.

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding a Download Button to Additonal Feilds’ is closed to new replies.