• Resolved Phil Emery

    (@noise)


    I can get the events to show up in a loop on a page via “Posts->Source->Custom query->Post Type->Events”.

    I want to include the “event date” at the top of each event. When I go to “Post Layout->Custom” then “Edit Custom Post Layout”, I’m not able to access any of the Events post type fields (like event date). I can see all the fields from the Advanced Custom Post plugin, but nothing from the events post type.

    How can I display the event date in the loop?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @noise,

    Thanks for posting!

    Are you using the BB Themer beta version? The Events Calendar integration is only available there. I just checked on my local and all of the events calendar connection are available. Check the screenshot below for reference. 🙂

    View post on imgur.com

    Ben

    • This reply was modified 8 years, 4 months ago by Ben Carlo. Reason: Wrong reply
    • This reply was modified 8 years, 4 months ago by Ben Carlo.
    Thread Starter Phil Emery

    (@noise)

    Ah, thanks. No, I think I’m using the non-beta version, just what comes in the standard install.

    That is exactly what I’m looking for.

    Perhaps in the KB article you could highlight that this only works in the beta version (although I would imagine it will go to the production branch?) with a link to the beta version.

    It wasn’t too clear in the KB article.

    Thanks for getting back!

    Thread Starter Phil Emery

    (@noise)

    Ben Carlo wrote:

    After inserting a connection, you’ll want to select Post Custom Field. You’ll then be asked for the custom field key. The key for the start date is _EventStartDate while the end date is _EventStartDate.

    If it’s an all day event, you can also use the key _EventAllDay which returns either Yes or No. 🙂

    Hope this helps!

    Hi Ben – this works a treat – just now looking through your documentation on how to format the output. Now it’s coming out at 2018-02-15 07:00:00

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @noise,

    That’s actually controlled by events plugin. You can change it under Events > Settings > Date Format Settings.

    Ben

    Thread Starter Phil Emery

    (@noise)

    Actually no.

    I think that may work in some applications but when calling the custom field “_EventStartDate ” directly, what is set in “Events > Settings > Date Format Settings” has no effect on how the date is ouput.

    In this case, the field is called by (in beaver builder) with [wpbb post:custom_field key='_EventStartDate']

    which returns the output as “2018-02-15 07:00:00”

    • This reply was modified 8 years, 4 months ago by Phil Emery.
    • This reply was modified 8 years, 4 months ago by Phil Emery.
    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey Phil,

    We just released the themer version 1.1 which is the stable release with The Events Calendar integration.

    The custom field connection doesn’t have any formatting to it, sorry about that! You’ll need to use the TEC connections so it uses the formatting from its settings. Check the screenshot below for reference. 🙂

    View post on imgur.com

    Ben

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘+“The Events Calendar” plugin – accessing date fields’ is closed to new replies.