Hi Modern Tribe,
I am looking at the single_events.php script (and others) and I’m trying to display the content differently. I realized there’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 use for each individual piece of this string? I’d like to take each of these segments and apply my own CSS and tags. For example, I’d like to turn the Google Map into a button, not just a link after the text.
Right now, my $venue_details reports data like this:
<address>
<span class="tribe-locality">Rochester</span>
<span class="tribe-delimiter">,</span>
<abbr class="tribe-region tribe-events-abbr" title="New York">NY</abbr>
<span class="tribe-postal-code">14623</span>
<span class="tribe-country-name">United States</span>
</span>
</address>
<a class="tribe-events-gmap" href="XXX" title="Click to view a Google Map" target="_blank">+ Google Map</a>
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’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.
Thanks!
Brendan