Check for Empty mashup – display something else

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

This topic contains 1 reply, has 2 voices, and was last updated by  Chris 9 months ago.

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

    lbweb
    Member

    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
    Member

    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.