• Resolved Gerdski

    (@gerdski)


    Hi,

    it’s me again, the map nerd πŸ™‚

    I’d like to display an OpenStreetMap after a Gigpress post (the one that is created when you choose so after adding a gig).
    I can see that the content of this post is empty, so I tried to add a function to filter / add somettng to the content.
    For the map I’d need the venue address, city, zip and country of the gig belonging to this post

    How can I access these Variables? $showdata[‘var’] doesn’t work.

    Thanks!

    • This topic was modified 7 years, 9 months ago by Gerdski.
Viewing 1 replies (of 1 total)
  • Thread Starter Gerdski

    (@gerdski)

    Just found it myself. 2 Queries:

    SELECT show_venue_id FROM sl_gigpress_shows WHERE show_related = ‘.$post->ID);

    SELECT venue_name, venue_address, venue_city, venue_country FROM sl_gigpress_venues WHERE venue_id = ‘.$show_venue_id

    works πŸ™‚

    • This reply was modified 7 years, 9 months ago by Gerdski.
Viewing 1 replies (of 1 total)

The topic ‘Get $showdata on Post?’ is closed to new replies.