Forum Replies Created
Thank you very much !
Is it possible to display a map or image instead of a nothing?
did you received my Mail with the access ?
I sent you an access with URL and for the tests I have displayed two maps :
——-> one with the snippet you provided :
$s = isset($_REQUEST[‘s’])?”&s=”. $_REQUEST[‘s’]:””;
$query =”post_type=typefichehotel&posts_per_page=-1″. $s;
echo do_shortcode(‘[mashup query="'. $query .'" width="1050" height="350"]‘);
echo “request format: ” . print_r($_REQUEST, true);
(notice: “typefichehotel” is the right name of my custom content, but it search on every types btw)
——-> then one with the simple mashup shortcode :
<?php echo do_shortcode(‘[mashup query="current" width="1050" height="350" ]‘);?>
OK I Send it to you right now
the list of result is right, I have all the hotels that meet the query. But the map seems to do not work correctly
I have only part of the results displayed on the map on for some query I do not have any results on the map at all
The page parameters seems to be ok
I guess theere is an error in : “post_type=hotels&posts_per_page=-1&”
the “&” is wrong, right ?
I corrected this anyway but it shows all the hotels
It works ! thank you so much !
EDIT: It worked because it displays all the hotels (I made a global research and it displayed all the hotel instead of the first 15)
But, It doesn’t work for Paris : All the hotels are displayed for every research.
I think you are very close ! Do you know what could be the reason?
Thanks for your answer and sorry for my english, it’s not my native language
Yes, I tried this one (query=”posts_per_page=-1&post_type=hotels”) , but it displays all the hotels on the map (not the hotel related to my research).
For example, say I have 600 registered hotels in my database.
I search all the hotels located in Paris.
I have a list of 50 hotels as results, of which only 15 are displayed as the first page of results, then the other over 3 other pages.
–> Currently, the map shows only the 15 results of the current page.
What I am looking to do is display all the 50 results on the map (but only results related to my research on paris, so 50 hotels)
I checked the documentation but I did not find any solution
I hope this is more understandable !