Skip Navigation

[Closed] Adding a Map type to a View or Content Template results in an error

This support ticket is created 2 years, 4 months 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.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 2 years, 4 months ago.

Author
Posts
#2519557
CleanShot 2022-12-19 at 22.35.12.jpg
CleanShot 2022-12-19 at 22.34.59.jpg

Tell us what you are trying to do?
I'm trying to add a Map to either a View or a Content Template. When I add it I get this error:
This block has encountered an error and cannot be previewed.

If I try and add it to a View I get this error first:
Map block cannot be inside the View block. If you want map markers to come from a View, place the Map block outside the View and in the Marker section, select View block for the Source for the marker option.

Then when I move it out I get the first error:
This block has encountered an error and cannot be previewed.

Is there any documentation that you are following?
This is one of the sources I've looked at: https://toolset.com/course-lesson/displaying-a-map-on-a-single-post-template/

Is there a similar example that we can see?

What is the link to your site?

#2519679

Nigel
Supporter

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

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

Hi Anthony

I'm not sure of the particular steps that led to the problem, but can I suggest that you delete the map block from the page. Then complete setting up your View block (at the moment it looks like it isn't retrieving any content). Then try adding a Map block again (outside of the View block, somewhere else on the page).

Does it work, or do you still encounter the same problem?

The topic ‘[Closed] Adding a Map type to a View or Content Template results in an error’ is closed to new replies.