Add input fields to community events form with ACF

Home Forums Calendar Products Community Events Add input fields to community events form with ACF

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1418160
    Uwe Matern
    Participant

    Good eveneing from Germany,

    we have the following request/idea.

    We plan to introduce the community events for our event organizers. We have added already a bunch of custom fields to our events which are filled and to be displayed in the front end. (e.g. art techniqe, art theme etc.) This all works fine and perfect.

    But we need additional information from the organizer, which should be entered by the organizers but not to be shown on the event front end (e.g. number of tickers to be sold). These are important information to be shared between the organizers and us but not for interest for the users.

    So, the idea is to use the ACF plugin for this purpose. It’s installed and I was already able to show some additional information in the community form by updating the template /community/edit.php.

    But I get now stuck trying to integrate a ACF field in this template. The target ist, that the organizer inputs all fields (title, .., tribe custom fields and ACF-fields) and submits all together after completion.

    Any idea how this could work?

    Many thanks in advance for your always helpful support.

    Best regards, Uwe

    #1418768
    Victor
    Member

     

    Hi Uwe!

    Thanks for getting in touch with us! 🙂

    We recently had a user wanting to achieve the same thing, but as you can see in their thread > https://theeventscalendar.com/support/forums/topic/where-to-place-acf_form_head-to-save-submitted-data/ the community form is a tricky one.

    I recommend you go through that thread as I’ve found many snippets that could be of real help while you develop this further.

    There is also this thread from that same user that can serve as reference > https://theeventscalendar.com/support/forums/topic/backend-integration-of-advanced-custom-fields/

    I hope that helps. Let me know if any questions.

    Best,
    Victor

    #1418795
    Uwe Matern
    Participant

    Dear Victor,

    thanks for your response. Indeed it seems to be very complicated and even not successfull if we try to mix the community event form with ACF. At leasz as I understood.

    So, what’a about the second option and use additional field from Tribe Pro to submit the requested information. So the only challenge is to NOT DISPLAY those information in the frontend. The problem seems to select one single additional field via a css selector.

    Example: https://finde-deinen-malkurs.de/kurs/kunstakademie-bad-reichenhall-gerhard-almbauer-lorales-monets-seerosengarten-in-giverny/ – this is a single event view. In the sidebar there is the section called “Weitere Angaben” where all additional fields are displayed. How could we e.g. “Level” not display?

    Any idea on this?

    Best Regards, Uwe

    #1419306
    Victor
    Member

    Hi Uwe!

    Indeed, the integration with ACF frontend custom fields is a bit tricky.

    Using additional fields, on the other hand, is a great option, but hiding the fields in the frontend via CSS might not be straight forward.

    I’d suggest you make a template override of the additional-fields.php template file located at /wp-content/plugins/events-calendar-pro/src/views/pro/modules/meta and modify the fields loop to prevent the output of a specific field.

    I hope that helps achieve what you are looking for.

    Have a good weekend,
    Victor

    #1437947
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Add input fields to community events form with ACF’ is closed to new replies.