Pronamic Google Maps
[resolved] If map is not 'active' for a particular post... (2 posts)

  1. flick
    Posted 4 years ago #

    Really loving this plugin- thank you! :)

    This is a random question: I am trying to setup an archive-posttype.php template, whereby if there is data in the geocode or pronamic-google-maps fields (or if it is 'Active') then display individual post-type post in a certain way. If not, then display them in a different way.

    Is there an easy way of doing this with Pronamic Google Maps please? I understand that sometimes it's possible to test others with $empty, but would it be possible with this plugin?



  2. Remco Tolsma
    Plugin Author

    Posted 4 years ago #

    You could use the pronamic_google_maps_is_active() function. This function only checks the Google Maps is active for the current global post. The function does not check whether other fields are not empty.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pronamic Google Maps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic