tribe_get_venue_description

Home Forums Calendar Products Events Calendar PRO tribe_get_venue_description

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #970843
    Danielle
    Participant

    You allow a venue description, but I can’t find any way to call that function. I’d like to have the venue description listed on my event detail page (event-single.php).

    #971002
    Danielle
    Participant

    I don’t see any way to display the event description. Can someone help?

    #971069
    Josh
    Participant

    Hey Danielle,

    Thanks for reaching out to us!

    The description for the venue takes advantage of the default post content for the venue custom post type. So, you could get the Venue ID from the using the “tribe_get_venue_id()” function.

    From there you could do a “get_post” on the venue ID and grab the “post_content”.

    Let me know if this helps.

    Thanks!

    #971080
    Danielle
    Participant

    Thanks that worked. Below is the code I used in case anyone wants to use it.

    
    <?php
        $my_postid = tribe_get_venue_id();;
        $content_post = get_post($my_postid);
        $content = $content_post->post_content;
        $content = apply_filters('the_content', $content);
        $content = str_replace(']]>', ']]>', $content);
        echo $content;
    ?>
    
    #972183
    Josh
    Participant

    Hey Danielle,

    Awesome! and thanks for providing the code for future reference!

    I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new thread.

    Thanks!

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