WordPress.org

Ready to get started?Download WordPress

Forums

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

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

    Thanks!

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

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 2 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

About this Topic