I am trying to filter a view based on distance from the parent post.
eg1. hidden link
eg2. hidden link
The parent post is CPT 'Location' and the list items are CPT 'Listing'
Each Listing and Location has a custom field for Address which stores the address in the format {lat,long}
As you can see below each Listing I can display the locations in the text using shortcode:
Parent: [types field="post-lat-long" item="$current_page" format="FIELD_LATITUDE,FIELD_LONGITUDE"][/types]
Self: [types field="post-lat-long"][/types]
Distance: [toolset-maps-distance-value location='[types field="post-lat-long" item="$current_page" format="FIELD_LATITUDE,FIELD_LONGITUDE"][/types]' postmeta='wpcf-post-lat-long']
Unfortunately I cannot find a shortcode that will work in the Query Filter for Distance in the classic view editor.
I was unable to create or save a Distance filter in the block editor view so I had to revert to classic.
I also get the error 'Only lowercase letters and numbers allowed as shortcode attributes' when trying to change the shortcode for the distance filter in classic view (see screenshot).
Hello. Thank you for contacting the Toolset support.
Can you please tell me what view you created and where you added that view and share admin access details.
Please share problem URL and tell me what results you want to filter.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
As per our support policy we entertain only one question pet ticket. As your original issue was resolved, I've split the ticket with your new question. We will communicate with new ticket. You are welcome to mark resolve this ticket with some different text like "This is resolved now".