Mashup Map display

Home Forums MapPress Support Mashup Map display

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

    Hi – I have trawled the support forum and tried multiple things but not getting anywhere.

    Have added PHP to search results page:

    $s = isset($_REQUEST[‘s’]) ? “s=” . $_REQUEST[‘s’] : “”;
    $query = “post_type=any&posts_per_page=-1&” . $s;
    echo do_shortcode(‘[mashup query="' . $query . '" width="100%" height="250"]‘);

    AND tried Mashup to Category Page using [mashup query="current"]

    No matter what I do – unless I query a specific Category (which won’t work with Search results) the Mashup shows all mapped posts.

    What am I missing?



    The easiest way to show current results is:
    [mashup query="current"]

    If you tried that and it’s not working, perhaps you can provide a sample URL? Email me with the contact form if you don’t want to post it here.

    As for the search query, it’s hard to tell if there’s an issue with the code or something else. What happens if you simplify it to use a fixed query that you know has some results? For example, if you know the term ‘apple’ has results, try:
    <?php echo do_shortcode('[mashup query="post_type=any&posts_per_page=-1&s=apple"]'); ?>

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