Skip Navigation

[Resolved] Displaying a post type in map

This support ticket is created 3 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 9 replies, has 2 voices.

Last updated by andreaP-10 3 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#2188183
map issue03.JPG
map issue02.JPG
map issue01.JPG

Hi there,
in a new page I added a map block and a view block to display in the map the addresses of the various custom post named "medici"
I can't finish my work due two issues I met:
1) when I add the map block I get a message error as per screenshot "map issue01"
2) I added a distance custom search field but I can't customize it (screenshot map issue02) I would like translate in italian the fields and placeholders. Furthemore what I see on the backend is different of what I get in the frontend. Expecially I would like put the "La mia posizione" button left-aligned and I would add a background color for this command (see sreenshot map issue03)

To build the page I follow the "Displaying a List of Posts on A Map in WordPress" course (https://toolset.com/course-lesson/displaying-a-list-of-posts-on-a-map/)

Could you assist me please?

Thank you very much

#2188551

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Can you please provide your debug info (hidden link), so that we can first look into why you are getting an error.

This shouldn't be happening in the current plugin versions.

#2188569

Hi Nigel, here are my debug infos
Thank you for your assistance

#2188591

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Thank you. You are using the current plugin versions, that's not the issue.

The error message in your screenshot is fairly generic and doesn't indicate the actual source of the error.

Could you please check your browser console for JS errors and your debug.log for PHP errors?

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor.

Try editing the page with the View again where you observe the problem and then inspect the log.

If you don't find the debug.log file it means it didn't generate any warnings or errors.

Please let me know what you find.

#2188725
map issue05.JPG
map issue04.JPG

I edited the page where the issue shown and now I have no more error messages and I can set-up my map block (see the attachment). May been a temporary bug.
In the wp-content directory I don't foud any debug.log file (see the attachment)
So it only remain to solve the issue #2
Could you please look into it and assist me?
Thank you very much

#2188833

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

The issue with the translations has two dimensions.

The first is that Toolset plugins only provide translation files in a small number of languages, not including Italian, so it is necessary to use a translation plugin to translate its plugin texts.

However, there is another problem, in that the translated texts still may not be shown. We "fixed" such an issue recently (Maps version 2.0.9), but I'm not sure the fix worked correctly, at least it doesn't appear to be working in the current version 2.0.11.

I need to do some more testing of this, please bear with me and I'll update you with my results when I can.

#2188987

Thanks Nigel. Do I report the ticket as resolved or do I have to wait for your response?
Thank You

#2189001

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I'll report back to you, let's keep this thread open.

#2189677

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2021-10-07 at 11.01.28.png

Regarding the problem with the translation of the text, you can get around the problem by adding custom text in the block settings in the sidebar for the distance filter.

See the screenshot, where I added the following (I was adding a Spanish translation for testing, you'll want to add Italian text):

Mostrar resultados dentro de %%DISTANCE%% de %%CENTER%%

As for the alignment of the La mia posizione input, I edited the page, selecting the distance filter and made some explicit styling choices in the block settings in the sidebar (for the inputs to have a grey border etc.).

It isn't possible to directly style the La mia posizione input individually within the UI, you would need to target it using CSS if you want to add some specific styles for it.

#2189745

My issue is resolved now. Thank you!