Check for Empty mashup – display something else

Home Forums MapPress Support Check for Empty mashup – display something else

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10225
    lbweb
    Participant

    I’m using the mashup template code:

    global $mappress;
    $atts = array(
    ‘width’=>300,
    ‘height’=>460,
    ‘show’ => ‘query’,
    ‘show_query’ => ‘post_type=locations&posts_per_page=-1&meta_key=wpcf-locstate&meta_value=’ . $stateViewing
    );
    echo $mappress->shortcode_mashup($atts);

     

    is there a way to not show the map if there are no POIs from the query and show different content instead?

    #10227
    Chris
    Keymaster

    Hi,

    Sorry, that’s not possible in the current version.

    What would you want to see instead of the empty map?  For example, one approach would be to show the map but instead of listing the locations print “No results”.

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