Sauter la navigation

[Fermé] [wpv-post-id] is adding -1 to the ID

This support ticket is created Il y a 2 années. 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 2 années.

Assisté par: Minesh.

Auteur
Publications
#2526253

Tell us what you are trying to do?
I am trying to create a link to a map pin on an archive page. I'm using the following shortcode to generate the markers:
[code]
[wpv-map-marker map_id='map' marker_id='marker-[wpv-post-id]' marker_icon='/link/to/map-pin.png' marker_field='wpcf-t4y-physical-address-map']
{my info-window HTML}
[/wpv-map-marker]
[/code]

In my archive page, I have 2 listings. One listing outputs correctly with `data-marker=correct_id`, but the other outputs with an additional "-1", ie: `data-marker=[ID]-1`

Is there any documentation that you are following?
https://toolset.com/forums/topic/map-marker-description-and-links/

Is there a similar example that we can see?
This is only happening on the archive page where I have switched to the block editor. My other archive page are still using the classic editor, and these work correctly: eg: lien caché

What is the link to your site?
The affected page is: lien caché

#2526907

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please tell me what is broken due to the data-marker=marker-ID?

Le sujet ‘[Fermé] [wpv-post-id] is adding -1 to the ID’ est fermé à de nouvelles réponses.