Mapress pro : use taxonomies to generate maps

Mappress pro, a plugin for wordpress, is worth its price : it can automatically create maps from custom fields adresses. I needed the possibility to create maps from a specific taxonomy, and this requires some hacking. here's the way to go for serious coders who want, like me, to spend one  intense hour . hope mappress pro incorporates that for future buyers !!

FIRST STEP : create a new configuration option for mappress to specify the custom taxonomy

  • in mappress.php

  • and in mappress_api, don't forget to declare your new option as class variable of Mappress_Options
    $customTaxonomyMap=""

SECOND STEP : implement action hooks to create the map when the post is saved

  • in mappress_pro.php, function Mappress_Pro()
  • and
1 reply
  1. david rothman
    david rothman says:

    This code seems to be incomplete. Can you post get_the_terms() and also provide some insite into the format if the taxonomy of the customTaxonomyMap ?

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *