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

Exclude posts from Nearby List #800

Closed actionmatt closed 6 years ago

actionmatt commented 6 years ago

When using the [geo_mashup_nearby_list] shortcode is it possible to exclude posts within a certain distance? I can't find any parameters in the list that would do that, but it would be great if we could.

Alternatively, we'd like to be able to exclude certain post-types (rather than just categories) - but again that doesn't seem to be possible?

Thanks for a great plugin!

cyberhobo commented 6 years ago

It looks like the map_post_type parameter should work with a comma separated list of post types to include. If that does the trick let me know and I'll add it to the documentation.

actionmatt commented 6 years ago

Great - yes map_post_type parameter works perfectly.

The only thing I have left is to remove the distance - is that possible. I have tried using the units parameter and setting it as units=false but that doesn’t work. Is there such a setting?

On 16 Jan 2018, at 04:40, Dylan Kuhn notifications@github.com wrote:

It looks like the map_post_type parameter should work with a comma separated list of post types to include. If that does the trick let me know and I'll add it to the documentation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cyberhobo/wordpress-geo-mashup/issues/800#issuecomment-357852079, or mute the thread https://github.com/notifications/unsubscribe-auth/ANhkcpyQnJhMX6gu1x0cJQC11O8XIFt2ks5tLChHgaJpZM4ReWRA.

cyberhobo commented 6 years ago

Great, I've updated the [Tag-Reference] to document that.

Your options for the distance are to hide the span via CSS or customize the nearby-list.php template.

actionmatt commented 6 years ago

Thanks Dylan for your help.

We need some help customising the nearby-list template so I have created a question using WPQuestions - https://wpquestions.com/Geo_Mashup_Customize_Nearby_List_Template/27529

In case you able to help us solve this.

Thank you,

Matt

On 17 Jan 2018, at 02:06, Dylan Kuhn notifications@github.com wrote:

Great, I've updated the [Tag-Reference] to document that.

Your options for the distance are to hide the span via CSS or customize the nearby-list.php template https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Feature-Usage#templating.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cyberhobo/wordpress-geo-mashup/issues/800#issuecomment-358171355, or mute the thread https://github.com/notifications/unsubscribe-auth/ANhkcv7myiaD7Pqs9Z_uVyxOlSBk9RRyks5tLVWlgaJpZM4ReWRA.