Overriding

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1094725
    bruce williams
    Participant

    I have been experimenting with The Events Calendar/Event Tickets and made some customizations of the venue.php template to show some custom meta fields. The custom templates are stored in the “tribe-events” directory of my theme. This worked perfectly.

    I have now purchased The Events Calendar Pro/Event Tickets Plus to gain the extra functionality they offer. Unfortunately, it appears that the venue.php used by The Events Calendar is no longer used by The Events Calendar Pro (any changes to the venue.php template including removing it entirely have no effect on the front-end display).

    I see no information regarding this template change in the template system documentation.

    What the name of the template file used to display the venue meta data on the single-event.php template and where is it’s new location when The Events Calendar Pro has been installed?

    Thanks!

    #1094753
    bruce williams
    Participant

    After more poking around on this, I wonder if this is a conflict between Events Calendar Pro/Event Tickets Plus and the Meta Box plugin (https://wordpress.org/plugins/meta-box/) which I’m using to add custom meta data to venues? API calls to Meta Box functions in event templates seem to have mysteriously quit working once I installed Events Calendar Pro/Event Tickets Plus. Deleting doesn’t seem to restore Meta Box functionality, though.

    #1095169
    Cliff
    Member

    Hi Bruce. Thanks for the detailed information.

    As far as templating goes, please reference our Themer’s Guide and read the comments at the top of this file for all the nitty-gritty details: /wp-content/plugins/events-calendar-pro/src/views/pro/single-venue.php

    If that doesn’t solve the issue for you…

    I haven’t tested our latest versions of Meta Box with the latest versions of our plugins, but if you provide me the code you have in place, I can test it on my local site’s Venues.

    Is the issue that your custom field data isn’t appearing, or are you seeing some evidence of actual conflicts (e.g. WP_DEBUG messages or something like that)?

    #1095185
    bruce williams
    Participant

    Additional poking around shows that one (perhaps more?) of the Meta Box function calls now returns different data: rwmb_the_value(). This function returns the “human readable” value or label of the custom meta field and is normally a singular value. This function is now returning an array for me; as an example:

    [label] => 300 yards, [value] => range_max_300_yards

    Interestingly, the rwmb_meta() function which returns the actual meta value still functions fine. Unfortunately, the meta value is not as desirable to show on the site front-end…

    Perhaps this is a conflict with the way The Events Calendar does custom meta? If so, is it possible to disable The Events Calendar custom meta functionality? Another possibility is that this is a symptom of my devel environment where I have been installing/removing plugins and making a fair number of tweaks. Not out of the realm of possibilities that I have broken this with something else I have done…

    #1095192
    Cliff
    Member

    Bruce, I’m not sure what to tell you here. Per our Scope of Support / Terms, I can’t really help you with such customizations other than pointing you in the right directions. I thought I could offer you a controlled environment test to compare to, but it seems you’ve got a lot of moving pieces on this one…

    There’s not a way to disable our plugins’ meta data because that’s how the plugin stores data to know when events start, end, are recurring, etc.

    Maybe this resource will help you though: https://theeventscalendar.com/knowledgebase/wordpress-post-meta-data/

    Let me know if you think there’s something I can still help you with.

    Thanks.

    #1101452
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Overriding’ is closed to new replies.