Functions to Display only City and State for Venue

Home Forums Calendar Products Events Calendar PRO Functions to Display only City and State for Venue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1134318
    Sean
    Participant

    Hi. I am trying to change my List View to display only the City and State abbreviation for the venues. For example, “Boston, MA”
    I see in the default List View template, the code for the venue is:
    <?php echo implode( ', ', $venue_details ); ?>

    I know I could use css to hide the other fields, but would using the following functions only have the city and state abbreviation display on the view?

    <?php echo tribe_get_city();?>, <?php echo tribe_get_state();?>

    Thank you.

    #1134631
    Hunter
    Moderator

    Hey Karly,

    That should work! If you’re not aware of our Themer’s Guide, it’s a great resource on how to go about creating and saving custom templates to avoid losing them when updating.

    Let me know how it goes and thanks for reaching out. Have a good weekend.
    Cheers!

    #1134970
    Sean
    Participant

    Hi Hunter,

    Thanks for confirming! I tried it out and it appears to be working well.

    Hope you have a great weekend too!
    Karly

    #1135213
    Hunter
    Moderator

    Hey Karly,

    Thanks for letting me know it worked out for you! I’ll close this thread out and if you wouldn’t mind, we’d appreciate you rating our support performance 🙂

    Feel free to open a new thread if you have any more questions or concerns. Have a great week!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Functions to Display only City and State for Venue’ is closed to new replies.