Display full state name instead of abbreviation

Home Forums Calendar Products Events Calendar PRO Display full state name instead of abbreviation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1098084
    Jesse Simmers
    Participant

    I would like to get the venue state but instead of displaying as an abbreviation I would like the full name.

    I currently use this to display the abbreviation:
    <?php echo tribe_get_state(); ?>

    How would I go about displaying the full state name?

    #1098801
    Geoff B.
    Member

    Good evening Jesse and welcome to the Events Calendar Support forum!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    Just to set expectations, as you might know, the scope of our support is mostly to get our wonderful customers started on the right track to customize their site and to help them in case of issues. We unfortunately do not provide complete support for customization.

    Simply put, you will need to use a filter on the returned results to get the full name to display.

    I would recommend reading the following to get some sense of how this is done: https://wp-types.com/forums/topic/convert-state-abbreviations-to-full-state-name-in-a-shortcode-from-url-parameter/

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1098923
    Jesse Simmers
    Participant

    Beautiful, thank you!

    #1099138
    Geoff B.
    Member

    Hey Jesse,

    I’m glad that helped you out.

    You are welcome back on our support forums any time 🙂

    For now, I am going to close this thread.

    Have a great week!

    Geoff B.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Display full state name instead of abbreviation’ is closed to new replies.