cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
63 stars 15 forks source link

Restrict map to category #741

Closed actionmatt closed 5 years ago

actionmatt commented 8 years ago

I am trying to restrict a map to just show post-types for a set category - I note that the Query Variables have a map_cat option but I can't get it to work and must be doing something wrong.

I am assuming you use it like:

[geo_mashup_map map_cat="179"]

But that is not working?

cyberhobo commented 8 years ago

map_cat is working on my development install. Can you publish a map that demonstrates the issue?

actionmatt commented 8 years ago

I am using geo-mashup with different post-types and this map I am trying to just show posts using the portfolio post types from one portfolio_category category. I am using this short code - [geo_mashup_map map_cat="179"] - but as you see no map appears (should be where the white space is at top of page. If I change it to show all posts then it works fine.

Page in questions is here - http://quietgarden.org.gridhosted.co.uk/test-garden-region-page/

Do I need specify anything else in the short code? What am I missing? Thanks.

cyberhobo commented 8 years ago

Can you also put in a plain [geo_mashup_map] shortcode so I can see the posts that should be showing up?

actionmatt commented 8 years ago

Ok. I have added a plain shortcode below the other code.

On 15 Apr 2016, at 13:54, Dylan Kuhn notifications@github.com wrote:

Can you also put in a plain [geo_mashup_map] shortcode so I can see the posts that should be showing up?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

zackdn commented 7 years ago

@actionmatt Did you ever get this resolved?

actionmatt commented 7 years ago

@zackdn no I didn't get it to work in the end and had to give up. still use the plugin which is great, but couldn't get this short code to work.

togger commented 7 years ago

I had the same problem. It works when I use it with map_content="global" try [geo_mashup_map map_content="global" map_cat="179"]

anorupl commented 7 years ago

@actionmatt

I am using geo-mashup with different post-types and this map I am trying to just show posts using the portfolio post types from one portfolio_category category.

If you using the portfolio post type with custom taxonomy "portfolio_category". Query variable "map_cat" it will not work. Query variable map_cat="" is only for basic type taxonomy = category. For custom taxonomy like „portfolio_category” is tax_query but currently only usable with template tags (not shortcodes).

cyberhobo commented 5 years ago

Closing this old issue which has a reasonable explanation.