Support » Plugin: WP Event Manager » Creating new form fileds

  • Resolved greenpete

    (@greenpete)


    Hi,

    I’m loving this plugin and would like to add one more field to the event submission form, which is easy enough, but getting that field/data to display on the event listing seems trickier…

    I have tried to follow the tutorial at… https://www.wp-eventmanager.com/documentation/adding-new-field-event-submission-form/
    …but I am not sure what of that code I need to change for my needs.

    I notice that when I create a new field it generates a new meta key, do I use that somewhere in the code I need to add to functions.php? In fact does all the code referred to on the tutorial page go into functions.php?

    Thanks, Peter

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Hitesh Makvana

    (@hiteshmakvana)

    Hi @greenpete
    There is several way you can show your custom field value at frontend. If you want to bind with hook you can see all the hooks in the template files with do_action or you can override the template file to your theme side and show meta key value .

    Please check this https://www.wp-eventmanager.com/documentation/how-to-show-ticket-price/

    You can follow any way which is easy for you. We made plugin extensible so you can easily customize it via template override https://www.wp-eventmanager.com/template-files-override/

    Thank you

    @hiteshmakvana Hi,

    I’m afraid I cannot make any of what you link to work for me, it’s all just a bit too confusing!

    The first link you gave me sent me to a page that shows me how to show a ticket price. I have no interest in that feature and cannot figure how I would use that information to my advantage.

    The templates and hooks just confuses me more 🙁

    Is there a clearer explanation somewhere? All I want to do is a one field to add a grid reference to all events.

    Thanks, Peter

    Plugin Author Hitesh Makvana

    (@hiteshmakvana)

    Hi @greenpete

    The show ticket price is just an example to show your custom field value at frontend. Like if you have added custom field called ticket price then you have to follow this doc. In case if you have added field name something else then you just have to change the met key.

    Meta key you can find in field editor inside key column.
    return apply_filters( 'display_custom_event_ticket_price', $post->YOUR KEY FROM FIELD EDITO HERE, $post );

    If you have multiple field then just change the key and function name as per your lable.

    Thank you

    Hi @hiteshmakvana

    Thanks, but that doesn’t work for me.

    I’m not a coder, that’s why I use WordPress.

    Plugins that require hacking seem kind of silly.
    It seems odd that you build in the ability to create new fields in the GUI but then require hacking the plugin to make the field created in the field editor do anything!

    I also needed to create a child theme in order to add the code to the functions file, so it wouldn’t be over written when I update the theme.

    I’ll do without and also try other event manager plugins, though I do on the whole like your plugin.

    Thanks for trying to help.

    Peter

    • This reply was modified 1 year, 3 months ago by greenpete. Reason: Added content
    Plugin Author Hitesh Makvana

    (@hiteshmakvana)

    Hi @greenpete
    We will try to improve this soon we will add GUI feature. We are trying our level best to help customer.

    Thank you

    Hi @hiteshmakvana

    A GUI would be excellent. I had thought of suggesting it, with drag and drop for event page elements, possibly implementing widgets etc.

    Thanks, it’s great to hear you will add this feature! 🙂

    Peter

    Hello @greenpete

    Your suggestion is really nice for GUI. We will work on your suggestion soon.

    Thank you.

    Awesome! 🙂

    Another feature I have thought of that I may benefit from (as weel as others) is distance to event.

    If it was possible to enter a location in the search/filter as well as geo’ locating an event from coordinates setup when the event was added, the event listing could display a distance from your location (or one the user sets) to the event.
    For me this would be brilliant because I am developing a motorcycle meet-up site, where people can, at present, see what events are coming up in a very nice way thanks to the filters you provide. Including location and distance would be excellent!

    It seems odd that you build in the ability to create new fields in the GUI but then require hacking the plugin to make the field created in the field editor do anything!

    Excellent point @greenpete! It was very easy via the GUI to add a non-members event price, but there was no way to easily have it show up on the event details page. So now, I just add the non-members price in the WordPress Editor as part of the event description.

    So adding fields to an event isn’t the problem @hiteshmakvana. It is easily viewing them once the data is entered without having to do any coding. I don’t think my non-techie users are going to want to do that if/when I hand over a completed website to them. Like I said some where else, “it’s the little, simple things that matters the most.” 😉

    Plugin Author Hitesh Makvana

    (@hiteshmakvana)

    Hi @iluvedm,

    We are thinking about the GUI so easily you can manage all the template of our plugin, but GUI is the way complicated to add it may conflict with theme of the plugin. We will discuss with our team and if all goes well we will add in our plugin for sure.

    Thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Creating new form fileds’ is closed to new replies.