{"id":1448102,"date":"2018-02-08T11:36:44","date_gmt":"2018-02-08T19:36:44","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/"},"modified":"2018-02-08T12:21:54","modified_gmt":"2018-02-08T20:21:54","slug":"tickets-to-places-in-list-view","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/","title":{"rendered":"Tickets to Places in List View"},"content":{"rendered":"<p>Hi, I added the following code to the top of my functions.php file to change the wording from &#8216;tickets left&#8217; to &#8216;places left&#8217;.<\/p>\n<p>add_filter( &#8216;tribe_tickets_buy_button&#8217;, &#8216;changes_button_text&#8217;, 11, 2 );<\/p>\n<p>function changes_button_text( $html ) {<\/p>\n<pre><code>$html = str_replace(\"tickets left\", \"places left\", $html);                                                                                                                                                      \nreturn $html;\n<\/code><\/pre>\n<p>}<\/p>\n<p>However, it does not work across all event listings. Please see link below. As you navigate through the events you will notice that some say &#8216;places left&#8217;  and others say &#8216;tickets left&#8217;.<\/p>\n<p>https:\/\/webnprosper.staging.wpengine.com\/events\/photo<\/p>\n<p>https:\/\/webnprosper.staging.wpengine.com\/events\/list<\/p>\n<p>(careful if navigating around as some of the top menu links will take you to the live site)<\/p>\n<p>Can you advise why this happening?<\/p>\n<p>Cheers<\/p>\n","protected":false},"template":"","class_list":["post-1448102","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>Tickets to Places in List View -<\/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\/tickets-to-places-in-list-view\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tickets to Places in List View -\" \/>\n<meta property=\"og:description\" content=\"Hi, I added the following code to the top of my functions.php file to change the wording from &#8216;tickets left&#8217; to &#8216;places left&#8217;. add_filter( &#8216;tribe_tickets_buy_button&#8217;, &#8216;changes_button_text&#8217;, 11, 2 ); function changes_button_text( $html ) { $html = str_replace(&quot;tickets left&quot;, &quot;places left&quot;, $html); return $html; } However, it does not work across all event listings. Please see [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/\" \/>\n<meta property=\"article:modified_time\" content=\"2018-02-08T20:21:54+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\/tickets-to-places-in-list-view\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/\",\"name\":\"Tickets to Places in List View -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-02-08T19:36:44+00:00\",\"dateModified\":\"2018-02-08T20:21:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/#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\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Tickets to Places in List View\"}]},{\"@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":"Tickets to Places in List View -","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\/tickets-to-places-in-list-view\/","og_locale":"en_US","og_type":"article","og_title":"Tickets to Places in List View -","og_description":"Hi, I added the following code to the top of my functions.php file to change the wording from &#8216;tickets left&#8217; to &#8216;places left&#8217;. add_filter( &#8216;tribe_tickets_buy_button&#8217;, &#8216;changes_button_text&#8217;, 11, 2 ); function changes_button_text( $html ) { $html = str_replace(\"tickets left\", \"places left\", $html); return $html; } However, it does not work across all event listings. Please see [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/","article_modified_time":"2018-02-08T20:21:54+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\/tickets-to-places-in-list-view\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/","name":"Tickets to Places in List View -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-02-08T19:36:44+00:00","dateModified":"2018-02-08T20:21:54+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tickets-to-places-in-list-view\/#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":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Tickets to Places in List View"}]},{"@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\/1448102","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\/1448102\/revisions"}],"predecessor-version":[{"id":1448204,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1448102\/revisions\/1448204"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1448102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}