Related Events – How to display description, location etc

Home Forums Calendar Products Events Calendar PRO Related Events – How to display description, location etc

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1231176
    Robert
    Participant

    I’m trying to display the related events description and various other details like loaction, price etc but i’m struggling to do this? Any advice would be greatly appreciated.

    Thanks in advance,

    Rob

    #1231836
    Hunter
    Moderator

    Hey Rob,

    I’d be happy to point you in the right direction. The file you’ll need to start with is /events-calendar-pro/src/views/pro/related-events.php. Please refer to our Themer’s Guide to learn the process of creating and saving custom templates.

    Please let me know if this helps and have a pleasant rest of your day!

    #1231932
    Robert
    Participant

    Hi Hunter,

    Thanks for getting back to me.

    I have already been looking at related-events.php and the themers guide but still can’t see how to display the description, location and price of a related event.

    Thanks

    Rob

    #1232471
    Hunter
    Moderator

    Hey Rob,

    I’d be happy to help further assist. If you wanted to include the event cost to the Related Events section, you’d create a template override as explained in the Themer’s Guide and include the following code:

    <?php echo tribe_get_cost( $post->ID ); ?>

    To include the event description, you’d include the following line:

    <?php echo apply_filters( 'the_content', $post->post_content ); ?>

    Please note you’ll have to manage from here on out, but the code above should get you started. Take care 🙂

    #1232711
    Robert
    Participant

    Perfect!! Thanks Hunter, have a great weekend!

    Rob

    #1233132
    Hunter
    Moderator

    Awesome! I appreciate the update and glad to hear the issue has been resolved. Please open a new thread if you have any more questions. Cheers!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Related Events – How to display description, location etc’ is closed to new replies.