• Resolved pawanranta

    (@pawanranta)


    Instead of creating a new event page, is there any way to integrate the event into an existing page. For example, I don’t want to create a new event page for this trip. I want search engines to show event schema and event details for this page only.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gladys

    (@greventscalendar)

    Hi there,

    We don’t have a way to pull a single event’s content and meta data onto another page, but you should be able to pull the content with a query and display it in a custom page template. Something like this to start:

    $events = tribe_get_events( [ 'name' => 'events-slug-here' ] );
     
    // Loop through the events, displaying the title and content for each
    foreach ( $events as $event ) {
       echo '<h4>' . $event->post_title . '</h4>';
       echo wpautop( $event->post_content );
    }

    We have a resource here that may help:

    https://theeventscalendar.com/knowledgebase/k/using-tribe_get_events/

    Let me know if this helps,
    Gladys

    Plugin Support Darian

    (@d0153)

    Hi @pawanranta

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to integrate event into an existing page?’ is closed to new replies.