Join our new community forum for support & discussion

Join Now

Home Support Extensions Geolocation big map

big map

  • Author
    Posts
  • mt.NATS

    I would like to make a separate page with a large map and marks on it …
    but I did not understand how to add this block!

    mt.NATS

    I don’t speak English very well, I didn’t immediately see that they had already asked such a question! Tell me, where can I find files in which there is a code responsible for displaying a block with a map and tags! thank!

    ihor developer

    There’s no such block at the moment, but it’s possible with the code customizations. If you’re familiar with PHP you can display it using this code:

    echo ( new HivePress\Blocks\Listing_Map() )->render();

    And if you query listings with https://developer.wordpress.org/reference/functions/query_posts/ before displaying this block, then the map markers will be displayed for these listings.

    PS. Thanks for your review:)

    condorito

    See my reply here.

    Hope this helps.

    mt.NATS

    Игорь, я не понял как это использовать?)
    Помоги пожалуйста!

    echo ( new HivePress\Blocks\Listing_Map() )->render();

    ihor developer

    This is just a code sample that can be used to display the map, but it also requires querying listings and other customizations. Please consider using the solution suggested by @condorito

    Там не все так просто к сожалению, это был пример как можно показать карту (без маркеров) с помощью кода, но он требует доработок.

    mt.NATS

    ok )

    я разобрался спасибо )

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

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.