Don't display maps without direction using do_shortcode

Home Forums MapPress Support Don't display maps without direction using do_shortcode

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15315
    Kevin Mamaqi
    Participant

    Hello,

    I am using the do_shortcode('[mashup query="current"]'); to put the maps in a specific part of the theme, the problem is that some posts with no address/map created are displaying an empty map, for example: http://www.euroviajar.com/como-la-realidad-virtual-cambiara-la-industria-de-los-viajes/

    How can I avoid this?

    #15332
    Chris
    Keymaster

    Hi,

    If you are just showing one map per post, it may be easier to just use the [mappress] shortcode (which doesn’t show blank maps) instead of [mashup]. If you need the mashup shortcode, you can try the hideempty argument to hide empty maps [mashup hideempty=”true”] (this is also available on the MapPress widget if that would work for you).

    #15334
    Kevin Mamaqi
    Participant

    It works, thank you Chris.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.