{"id":1093383,"date":"2016-03-24T07:03:01","date_gmt":"2016-03-24T14:03:01","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/"},"modified":"2016-04-09T09:35:03","modified_gmt":"2016-04-09T16:35:03","slug":"delete-a-comma-2","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/","title":{"rendered":"Delete a comma 2"},"content":{"rendered":"<p>Hello,<br \/>\nI had a conversation on this topic before: https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma\/<\/p>\n<p>Now I could get into the problem but the solution didn&#8217;t work.<br \/>\nI edited the code and finally deleted all commas inside this area .. but the comma is still displayed:<\/p>\n<pre><code>\t\t\/**\n\t\t *  Returns the full address of an event along with HTML markup.  It\n\t\t *  loads the full-address template to generate the HTML\n\t\t *\/\n\t\tpublic function fullAddress( $post_id = null, $includeVenueName = false ) {\n\t\t\tglobal $post;\n\t\t\tif ( ! is_null( $post_id ) ) {\n\t\t\t\t$tmp_post = $post;\n\t\t\t\t$post     = get_post( $post_id );\n\t\t\t}\n\t\t\tob_start();\n\t\t\ttribe_get_template_part( &#039;modules\/address&#039; );\n\t\t\t$address = ob_get_contents();\n\t\t\tob_end_clean();\n\t\t\tif ( ! empty( $tmp_post ) ) {\n\t\t\t\t$post = $tmp_post;\n\t\t\t}\n\n\t\t\treturn $address;\n\t\t}\n\n\t\t\/**\n\t\t *  Returns a string version of the full address of an event\n\t\t *\n\t\t * @param int|WP_Post The post object or post id.\n\t\t *\n\t\t * @return string The event&#039;s address.\n\t\t *\/\n\t\tpublic function fullAddressString( $postId = null ) {\n\t\t\t$address = &#039;&#039;;\n\t\t\tif ( tribe_get_address( $postId ) ) {\n\t\t\t\t$address .= tribe_get_address( $postId );\n\t\t\t}\n\n\t\t\tif ( tribe_get_city( $postId ) ) {\n\t\t\t\t$address .= tribe_get_city( $postId );\n\t\t\t}\n\n\t\t\tif ( tribe_get_region( $postId ) ) {\n\t\t\t\t$address .= tribe_get_region( $postId );\n\t\t\t}\n\n\t\t\tif ( tribe_get_zip( $postId ) ) {\n\t\t\t\t$address .= tribe_get_zip( $postId );\n\t\t\t}\n\n\t\t\tif ( tribe_get_country( $postId ) ) {\n\t\t\t\t$address .= tribe_get_country( $postId );\n\t\t\t}\n\n\t\t\treturn $address;\n\t\t}<\/code><\/pre>\n<p>here is how it looks like:<br \/>\nhttp:\/\/screencast.com\/t\/h1UGI3he<br \/>\nhttp:\/\/screencast.com\/t\/8wb9RwJcTk<\/p>\n<p>And here is how I did the setup for the Addres to display like we do in Austria:<br \/>\nhttp:\/\/screencast.com\/t\/sLxZmwacvkc<\/p>\n<p>As you can see, the comma is set to be displayed to seperate the ZIP (PLZ) but I left the field empty because I need the ZIP to be displayed in front of the city and therefore added it to the city field.<\/p>\n<p>Any other idea where I could dlete this comma?<\/p>\n<p>Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-1093383","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>Delete a comma 2 -<\/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\/delete-a-comma-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Delete a comma 2 -\" \/>\n<meta property=\"og:description\" content=\"Hello, I had a conversation on this topic before: https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma\/ Now I could get into the problem but the solution didn&#8217;t work. I edited the code and finally deleted all commas inside this area .. but the comma is still displayed: \/** * Returns the full address of an event along with HTML markup. It [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-09T16:35:03+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\/delete-a-comma-2\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/\",\"name\":\"Delete a comma 2 -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-03-24T14:03:01+00:00\",\"dateModified\":\"2016-04-09T16:35:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/#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\":\"Delete a comma 2\"}]},{\"@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":"Delete a comma 2 -","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\/delete-a-comma-2\/","og_locale":"en_US","og_type":"article","og_title":"Delete a comma 2 -","og_description":"Hello, I had a conversation on this topic before: https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma\/ Now I could get into the problem but the solution didn&#8217;t work. I edited the code and finally deleted all commas inside this area .. but the comma is still displayed: \/** * Returns the full address of an event along with HTML markup. It [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/","article_modified_time":"2016-04-09T16:35:03+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\/delete-a-comma-2\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/","name":"Delete a comma 2 -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-03-24T14:03:01+00:00","dateModified":"2016-04-09T16:35:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/delete-a-comma-2\/#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":"Delete a comma 2"}]},{"@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\/1093383","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1093383\/revisions"}],"predecessor-version":[{"id":1093922,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1093383\/revisions\/1093922"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1093383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}