{"id":102858,"date":"2014-02-10T14:50:09","date_gmt":"2014-02-10T22:50:09","guid":{"rendered":"https:\/\/tri.be\/support\/forums\/topic\/address-format-via-address-php\/"},"modified":"2014-04-21T07:23:18","modified_gmt":"2014-04-21T14:23:18","slug":"address-format-via-address-php","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/","title":{"rendered":"Address Format via address.php"},"content":{"rendered":"<p>Trying to &#8220;fix&#8221; the formatting for addresses in the meta box and on single venue &amp; organizer pages via a custom address.php file placed in the tribe-events\/modules folder of my theme. I have already removed the country by commenting out everything under &#8220;Get our country&#8221;. <\/p>\n<p>Venue addresses by default look like this in the meta box on single events:<br \/>\nVenue Name<br \/>\n123 Any St, Town, State, Zip<\/p>\n<p>Venue addresses by default look like this on the single organizer view Upcoming Events list:<br \/>\nVenue Name, 123 Any St, Town, State, Zip<\/p>\n<p>Where I&#8217;m trying to get is this:<br \/>\nVenue Name<br \/>\n123 Any St<br \/>\nTown, State Zip<\/p>\n<p>I almost got there by simply adding a br tag to the end of the address_out line for the street address and removing commas, BUT then when I view the single venue page, I get double spaced lines for the address and I don&#8217;t want that. <\/p>\n<p>Also, after my &#8220;fix&#8221;, on the single organizer view I&#8217;m getting a comma after the venue name\/link and no return. Example:<br \/>\nVenue Name, 123 Any St<br \/>\nTown, State Zip.<\/p>\n<p>I hope I haven&#8217;t made this too confusing to read. Thanks for anything you might have to offer.<\/p>\n","protected":false},"template":"","class_list":["post-102858","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Address Format via address.php -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Address Format via address.php -\" \/>\n<meta property=\"og:description\" content=\"Trying to &#8220;fix&#8221; the formatting for addresses in the meta box and on single venue &amp; organizer pages via a custom address.php file placed in the tribe-events\/modules folder of my theme. I have already removed the country by commenting out everything under &#8220;Get our country&#8221;. Venue addresses by default look like this in the meta [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-04-21T14:23:18+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/\",\"name\":\"Address Format via address.php -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-02-10T22:50:09+00:00\",\"dateModified\":\"2014-04-21T14:23:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Address Format via address.php\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Address Format via address.php -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/","og_locale":"en_US","og_type":"article","og_title":"Address Format via address.php -","og_description":"Trying to &#8220;fix&#8221; the formatting for addresses in the meta box and on single venue &amp; organizer pages via a custom address.php file placed in the tribe-events\/modules folder of my theme. I have already removed the country by commenting out everything under &#8220;Get our country&#8221;. Venue addresses by default look like this in the meta [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/","article_modified_time":"2014-04-21T14:23:18+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/","name":"Address Format via address.php -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-02-10T22:50:09+00:00","dateModified":"2014-04-21T14:23:18+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/address-format-via-address-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Address Format via address.php"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/102858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/102858\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=102858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}