Show category mashup

Home Forums MapPress Support Show category mashup

Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #15491
    birobiro
    Participant

    Hi,
    I have a tourism website and have purchased Pro. I have about 60 articles (categorized “beach”) and about 30 articles of hotels, each article has its own map with indicating situation. I am trying to get one large map showing all beaches and another map showing all hotels.

    But when i try to get this, mashup shows all indications (including hotels and beaches). Is the following code right?

    [mashup query="post_type=beach"]

    #15492
    Chris
    Keymaster

    Hi,

    The query looks OK but WP will ignore the post type if it’s invalid. Are you using post types or categories (or some other taxonomy) to group the posts?

    #15493
    birobiro
    Participant

    Thank you for your answer. I think there’s something i’m not doing right. I just have created different posts and then choose category: “beach”. So I’m grouping posts with category.

    #15494
    Chris
    Keymaster

    It looks like the problem is that you’re querying for the mashup by post type. You should be querying by category instead:

    [mashup query="category_name=beach"]

    There are some other query examples here:
    http://mappresspro.com/mappress-documentation#toc-mashups

    #15496
    birobiro
    Participant

    It was a silly mistake, Thank you!

    #15523
    birobiro
    Participant

    I have created a mashup map, but when i click in a POI, a small windows appears but it is not big enough to show thumbnail. (I have to scroll to see full image).

    You can see it here: http://ibizaisla.es/ibiza/playa/playas-nudistas.html

    Do I have to apply any special size to show full thumbnail?

    Thank you in advance,

    #15540
    Chris
    Keymaster

    Hi,

    If you use the HTML generated by WordPress for an image, it will be incorrect. WordPress uses height and width for the image tag but doesn’t include ‘px’, which is invalid in some browsers. Add the ‘px’ suffix to make it work.

    For example, change
    <img height="300" width="225" src="myimage">

    To:
    <img height="300px" width="225px" src="myimage">

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