Skip Navigation

[Resolved] Member profile page: display members near me view, Select & URL Custom Fields

This thread is resolved. Here is a description of the problem and solution.

Problem:

Order the post by address distance on a custom field of current post

Solution:

It needs custom codes, see the solution here:
https://toolset.com/forums/topic/member-profile-page-display-members-near-me-view-select-url-custom-fields/page/2/#post-1147104

Relevant Documentation:

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#1147703

Yes, you are right, I forgot to mention in my answer:
https://toolset.com/forums/topic/member-profile-page-display-members-near-me-view-select-url-custom-fields/page/2/#post-1147104

I have put the PHP codes into your website:
Dashboard-> Toolset-> Settings-> Custom code:
hidden link
Name "map-center"

More help:
https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/

For your other question:
Q1) Can the pop-up with the member neighbor show their profile image, name, location and click to their profile page?
There isn't such a built-in feature within Toolset map plugin, the document you mentioned above is different from your case, in the screenshot:
hidden link
There is only one post, but with multiple images.
But in your case, one post has only one feature image, I suggest you put the featured image shortcode [wpv-post-featured-image] into marker shortcode, like this:
hidden link
section "Loop Editor"

[wpv-map-marker map_id='map-1' marker_id='marker-[wpv-post-id]' marker_field='wpcf-mbr-biz-address'][wpv-post-featured-image]<div style="text-color:#3f770e">[types field='company_name'][/types]

see the result here:
hidden link

Q2) Can that marker stand alone, and the other 4 are grouped together?
I suggest you change the map shortcode, disable "cluster", like this:
hidden link
section "Loop Editor":

[wpv-map-render map_id="map-1" cluster="off" spiderfy="on" map_type_control="off" street_view_control="off" style_json="//membership.eyeprosper.com/wp-content/plugins/toolset-maps/resources/json/Silver.json"][/wpv-map-render]

More help:
https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-render
cluster. Optional, defaults to off . Can be on or off . When set to on, markers close enough based on some rules will be rendered as a cluster.

See the result here:
hidden link
click the bundled markers, you will see each marker.

#1148387

Oh, this is fabulous! Thank you so much for your help and patience through this process! I have learned so much!

One last question. I'd rather not see the address again above the map. Is it needed for the query, or can it be hidden?

#1148496

My issue is resolved now. Thank you! Everything is working perfectly with the map, even with the Elementor template.

#1148752

You are welcome