Mappress: "Current" Query not Working

Home Forums MapPress Support Mappress: "Current" Query not Working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9675
    Law4elders
    Participant

    Hello

    I set up my mappress short code [mashup show=”current”] to show the markers for all of the posts listed but it isn’t showing anything.

    #9676
    Chris
    Keymaster

    Hi, did you put that code in a post, or did you use do_shortcode() to place it in your template?

    The reason I ask is that if you insert it into a post the ‘current’ posts is only that post.

    If you put it in the template, it should show all of the posts WP has selected (WP places them in a global variable called $wp_query).  An example of this is the sidebar widget, which should show all the posts being displayed if you use “current”.

    #9677
    Law4elders
    Participant
    #9678
    Chris
    Keymaster

    Did you mean you put it into a page as a shortcode, or you put it into the page template?

    When show=”current” the map will show the contents of the current WordPress query.  WordPress sets it up automatically based on the arguments in the URL.  For example the main page is usually a query showing the index of posts, or if you enter http://www.myblog.com/category it sets up a query for posts in that category.

    Looking at that URL, my guess is that the WP query is just to display that one page.

    Are you using a custom query inside the template for the list of facilities?

    If so – try setting the mashup to exactly the same query instead of “current”.

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