Forums

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

  1. flick
    Member
    Posted 10 months 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?

    Thanks!

    http://wordpress.org/extend/plugins/pronamic-google-maps/

  2. Remco Tolsma
    Member
    Posted 10 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic