p36p

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Don't show map if empty in mashup #12644
    p36p
    Participant

      Thank you very much !
      Is it possible to display a map or image instead of a nothing?

      Cheers

      in reply to: Display all current queries on the map #11936
      p36p
      Participant

        Hi Chris

        did you received my Mail with the access ?

        regards

        in reply to: Display all current queries on the map #11919
        p36p
        Participant

          I sent you an access with URL and for the tests I have displayed two maps :

          ——-> one with the snippet you provided :

          <?php

          $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 “<br/>”;

          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" ]‘);?>

           

          in reply to: Display all current queries on the map #11918
          p36p
          Participant

            OK I Send it to you right now

            in reply to: Display all current queries on the map #11913
            p36p
            Participant

              Hi Chris,

              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

              in reply to: Display all current queries on the map #11907
              p36p
              Participant

                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

                in reply to: Display all current queries on the map #11906
                p36p
                Participant

                  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?

                  in reply to: Display all current queries on the map #11904
                  p36p
                  Participant

                    Hi Chris,

                    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 !

                  Viewing 8 posts - 1 through 8 (of 8 total)