I have a problem with the code that we had set up and allowed to pass to "Mappress" the query made by "Views".
As a reminder I use "Views" to filter a taxonomy named "Agencies" from two taxonomies "locations" and "services".
The result of the filter displays a list of agencies and points on a map (mappress in mashup mode).
The site is multilingual and managed by WPML.
The problem is as follows:
When the page appears without any filtering is done, Mappress mashup shows in the same map Fr and Uk agencies point. (see MappressViews1.jpeg)
If filtering is performed Uk agencies points disappear and so it resumes normal operation. (see MappressViews2.jpeg)
Have you an idea to pass before filtering the language setting to Mappress?
It will be much easier to resolve this if you can give me access to your Dashboard. You can send me the credentials using the boxes below the comment area. If you are not comfortable I can setup a test server for you instead.
indeed it's not in the list ... You provided me a sortcode for the query to be passed from Views to Mappress and it worked very well until now.
View the history of our discussions on the previous thread about my request. (https://toolset.com/forums/topic/toolset-views-and-mappress/)
I understand that you have developed your solution but I can't change the whole system that we have developed. I manage more than 200 offices on the website.
Tell me if you can help me because the system operates at 90%, I just have a problem to isolate markers UK and FR loading the page.
Im not sure I understand. If you look in the browser error console you can see the SQL query that is being sent to the database. I have tested the SQL query with phpMyAdmin and it works fine, all results are french only.
SELECT corpo_posts.* FROM corpo_posts JOIN corpo_icl_translations t ON corpo_posts.ID = t.element_id
AND t.element_type IN ('post_agences') JOIN corpo_icl_languages l ON t.language_code=l.code AND l.active=1 WHERE 1=1 AND corpo_posts.ID NOT IN (915) AND corpo_posts.post_type = 'agences' AND (corpo_posts.post_status = 'publish') AND t.language_code='fr' ORDER BY corpo_posts.post_date DESC
Can you give me an example of a repeated location in the map so I can double check?