Skip Navigation

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

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)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 12 months ago.

Assisted by: Minesh.

Author
Posts
#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: hidden link

What is the link to your site?
The affected page is: hidden link

#2526907

Minesh
Supporter

Languages: English (English )

Timezone: 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?

The topic ‘[Closed] [wpv-post-id] is adding -1 to the ID’ is closed to new replies.