{"id":1052565,"date":"2016-01-08T06:14:56","date_gmt":"2016-01-08T14:14:56","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/"},"modified":"2016-02-18T08:33:41","modified_gmt":"2016-02-18T16:33:41","slug":"can-i-get-the-individual-variables-in-venue_details","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/","title":{"rendered":"Can I get the individual variables in $venue_details?"},"content":{"rendered":"<p>Hi Modern Tribe,<\/p>\n<p>I am looking at the single_events.php script (and others) and I&#8217;m trying to display the content differently. I realized there&#8217;s a variable called $venue_details, which seems to concatenate and add tags for address, state, zip, google map, and other useful variables.<\/p>\n<p>However, I was wondering if we have variables which I can use for each individual piece of this string? I&#8217;d like to take each of these segments and apply my own CSS and tags. For example, I&#8217;d like to turn the Google Map into a button, not just a link after the text.<\/p>\n<p>Right now, my $venue_details reports data like this:<\/p>\n<pre><code>&lt;address&gt;\n&lt;span class=&quot;tribe-locality&quot;&gt;Rochester&lt;\/span&gt;\n&lt;span class=&quot;tribe-delimiter&quot;&gt;,&lt;\/span&gt;\n&lt;abbr class=&quot;tribe-region tribe-events-abbr&quot; title=&quot;New York&quot;&gt;NY&lt;\/abbr&gt;\n&lt;span class=&quot;tribe-postal-code&quot;&gt;14623&lt;\/span&gt;\n&lt;span class=&quot;tribe-country-name&quot;&gt;United States&lt;\/span&gt;\n&lt;\/span&gt;\n&lt;\/address&gt;\n&lt;a class=&quot;tribe-events-gmap&quot; href=&quot;XXX&quot; title=&quot;Click to view a Google Map&quot; target=&quot;_blank&quot;&gt;+ Google Map&lt;\/a&gt;<\/code><\/pre>\n<p>I could apply CSS, but that would only give me so much control. I want control over where the data is presented, since I plan on placing in different areas. If possible, I&#8217;d like to separate each piece of content here into different variables. I could cut the heck out of the string using functions, but I figured these variables have to exist somewhere.<\/p>\n<p>Thanks!<br \/>\nBrendan<\/p>\n","protected":false},"template":"","class_list":["post-1052565","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>Can I get the individual variables in $venue_details? -<\/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\/can-i-get-the-individual-variables-in-venue_details\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Can I get the individual variables in $venue_details? -\" \/>\n<meta property=\"og:description\" content=\"Hi Modern Tribe, I am looking at the single_events.php script (and others) and I&#8217;m trying to display the content differently. I realized there&#8217;s a variable called $venue_details, which seems to concatenate and add tags for address, state, zip, google map, and other useful variables. However, I was wondering if we have variables which I can [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-18T16:33:41+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\/can-i-get-the-individual-variables-in-venue_details\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/\",\"name\":\"Can I get the individual variables in $venue_details? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-08T14:14:56+00:00\",\"dateModified\":\"2016-02-18T16:33:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/#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\":\"Can I get the individual variables in $venue_details?\"}]},{\"@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":"Can I get the individual variables in $venue_details? -","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\/can-i-get-the-individual-variables-in-venue_details\/","og_locale":"en_US","og_type":"article","og_title":"Can I get the individual variables in $venue_details? -","og_description":"Hi Modern Tribe, I am looking at the single_events.php script (and others) and I&#8217;m trying to display the content differently. I realized there&#8217;s a variable called $venue_details, which seems to concatenate and add tags for address, state, zip, google map, and other useful variables. However, I was wondering if we have variables which I can [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/","article_modified_time":"2016-02-18T16:33:41+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\/can-i-get-the-individual-variables-in-venue_details\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/","name":"Can I get the individual variables in $venue_details? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-08T14:14:56+00:00","dateModified":"2016-02-18T16:33:41+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-get-the-individual-variables-in-venue_details\/#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":"Can I get the individual variables in $venue_details?"}]},{"@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\/1052565","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\/1052565\/revisions"}],"predecessor-version":[{"id":1052782,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1052565\/revisions\/1052782"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1052565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}