• Resolved ldekay

    (@ldekay)


    Hi Mat,

    Dylan Kuhn (GeoMashup Maps) helped me get his plugin to post map locations for Simple Links by adding a template tag

    <?php
    echo GeoMashup::map( array(
    	'map_post_type' => 'simple_link',
    ) );
    ?>

    to my child theme and using the shortcode
    [geo_mashup_map map_post_type="simple_link"]
    However I can’t control which categories are posted whether I include a parameter in the shortcode
    [geo_mashup_map map_post_type="simple_link" simple_link_category="324"]
    or I add to the php

    'tax_query' => array(
    		array(
    			'taxonomy' => 'simple_link_category',
    			'terms' => 302
    		)
    	)

    Either way it posts ALL the map locations associated with the Simple Link categories. Is the taxonomy name correct? Any insights you might have would be appreciated.

    https://www.ads-software.com/plugins/simple-links/

Viewing 1 replies (of 1 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    There is a constant to get the taxonomy

    Simple_Links_Categories::TAXONOMY

    Otherwise simple_link_category is the correct taxonomy name.

    So it could look something like this:

    'tax_query' => array(
    		array(
    			'taxonomy' => Simple_Links_Categories::TAXONOMY,
    			'field'    => 'id',
    			'terms'    => 302,
    		),
    	)
Viewing 1 replies (of 1 total)
  • The topic ‘category taxonomy to interact with GeoMashup maps’ is closed to new replies.