Calling Custom Fields into page

Home Forums Calendar Products Events Calendar PRO Calling Custom Fields into page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #934635
    Gary
    Participant

    Hi there,
    I am wanting to tweak the layout of the event page as I have added some custom fields that now need re-ordering. I am not a developer and tend to hack my way through the code to get the results that I need.
    Am looking at the event page with custom fields in place and see that the file that needs tweaking is plugins\the-events-calendar\views\modules\meta\details.php – I also have got the key from phpmyadmin so now I need to call the key into page with php…
    Hopefully I am on the right track, any assistance with this will be great!

    thanks,

    #935050
    Brook
    Participant

    Howdy Gary,

    I understand hacking your way through stuff. It’s how I started.

    The easiest way to get the custom field info is with the function tribe_get_custom_fields(). That will return an array of data. Whatever labels you set the Additional Field to will be the keys for the data within the array. So no need to bother looking up what the they are stored as in the SQL table, just use the label you input in the Events Settings area.

    Does that make sense? Did that work? Please let me know if I can be of further help. Cheers!

    – Brook

    #935057
    Gary
    Participant

    Hey Brook, thanks for your reply.
    I managed to get it sorted via tweaking the plugins\the-events-calendar\views\modules\meta\details.php
    Hopefully this works without any future issues.

    Feels great to hit f5 and view the results i was looking for eventually…

    Onto the next tweak I need to implement – linking to a url that has been created with a plugin..

    Cheers,

    Gary

    #935529
    Brook
    Participant

    I am glad you got it working Gary. It sounds like your other issue is with a different plugin. Let us know if you need anything else from us though.

    Since the original issue is resolved I am going to archive this topic. Thanks for posting!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Calling Custom Fields into page’ is closed to new replies.