Support » Plugin: Google Map Shortcode » [Plugin: Google Map Shortcode] Map Points for Custom Taxonomies/Custom Post Types

  • I am currently using the Google Map Shortcode plug-in on a site I’m developing, and it’s working just fine for “standard” Posts and Pages.

    Recently, I added a Custom Post Type (called “hotels”) to the site, and created two new Custom Taxonomies to use with this (“cities” and “regions”). I’d like to use the plug-in mentioned above to display map points for posts that use the CPT/Custom Taxonomies, and so far it will let me add the points in question, but doesn’t properly spit them out on the relevant theme template file – it only shows the first post within the taxonomy, but not the others.

    On line 223 of google-map-shortcode.php, there’s this:

    $post_obj = get_posts(array(‘category__in’=>$categories,’numberposts’=>-1));

    This is used to query posts within a category and print out their associated map points; of course, the problem is that because Custom Taxonomies aren’t “traditional” categories, it doesn’t quite work with them 🙁

    Can any of you guys think of a way I can query the taxonomies correctly to get the points from each post within them?

    As always, any help would be gratefully received!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google Map Shortcode] Map Points for Custom Taxonomies/Custom Post Types’ is closed to new replies.