• Resolved pierrehooker

    (@pierrehooker)


    Hello,
    When you create or edit a venue you have a standard wordpress WYSIWYG box. I presumed if you entered info into this area it would show up on the events detail page in the event info/meta box. However it doesn’t.

    Is there some simple code I can drop into modules/meta/venue.php to get the content from this area to display?

    Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @pierrehooker,

    Thanks for reaching out! Unfortunately, we don’t have a shortcode or other simple text snippet on hand for displaying venue descriptions in event meta boxes. However, if you’re willing to attempt a bit of PHP customization, you may be able to run a query for post type tribe_venue, call the venue by post ID, and return the_content(); to display your description. Hopefully this will get you where you’re looking to go! ??

    Thanks again, and let us know if you should have any other questions!

    Thread Starter pierrehooker

    (@pierrehooker)

    Hello Caroline,

    This is exactly the info I am looking for. Thanks,

    Thread Starter pierrehooker

    (@pierrehooker)

    Actually, I just thought this over, and we have multiple venues, and modules/meta/venue.php controls all of them – we need to display information unique to each venue – so I don’t quite see how this would work since you say to call the venue by post ID.

    If you can recommend any way to make the query automatically aware of the venue ID for the event or any other workaround???

    Thread Starter pierrehooker

    (@pierrehooker)

    This got me on the right track, for anybody else looking to do this, this is the code I used:

    <div class="venue-additional-info">
    <?php 
    $ID = tribe_get_venue_id();
    $args = array('p' => $ID, 'post_type' => 'tribe_venue');
    $loop = new WP_Query($args);
    ?>
    <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    <?php the_content () ?>
    <?php endwhile; ?>
    
    <?php if ( ! empty( $website ) ): ?>
    
    <?php endif ?>
    </div>
    • This reply was modified 7 years, 10 months ago by pierrehooker.

    Hey @pierrehooker,

    Glad to see Caroline was able to help you out! Be sure to reach out in the future if you have questions. ??

    Best,

    Shelby

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add venue info from venue wysiwyg box into event detail page?’ is closed to new replies.