Skip Navigation

[Resolved] Repeating fields Shortcode – URL not working

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Shane 3 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1909645

I'm trying to get a URL in a repeatable unordered list by using the following shortcode to link to the new page.

Repeatable shortcode added:

    [wpv-for-each field="wpcf-slug"]

  • [types field="slug"][/types]
  • [/wpv-for-each]

(as per this link https://toolset.com/forums/topic/displaying-single-line-fields-in-a-tag/)

However, the problem I'm having is that the URL that has been added (to the toolset field in the backend of the website) creates a URL that has the current page URL but then adds the new (parent and child element) URL to the end of it which directs users to a non-existent page.

URL should be:
domain.co.uk/services/health-safety/

URL appearing:
domain.co.uk/services/project-management/services/health-safety/

#1909657

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Keith,

Thank you for getting in touch.

Can you try doing it like this?

[wpv-for-each field="wpcf-slug"]
[types field="slug" output='raw'][/types]
[/wpv-for-each]

Please let me know if this helps.
Thanks,
Shane

#1910331
Screenshot 2021-01-19 at 09.13.01.png

Hi Shane,

Many thanks for getting back to me.

I've tried that shortcode but the same URL (domain.co.uk/services/project-management/services/health-safety/) is appearing.

Also, it has stripped out the

    it's inside too (as per the screenshot attached and which you can see down the right-hand side of the page - domain.co.uk/services/project-management).

    If you could look into this further for me that would be much appreciated.

    Many thanks

    #1910757

    Shane
    Supporter

    Languages: English (English )

    Timezone: America/Jamaica (GMT-05:00)

    Hi Keith,

    Yes I can have a further look at this for you.

    Can you provide me with admin access to the site so that I can have a further look ? Also send me a link to the page where I can see and test out this issue.

    I've enabled the private fields for your next response.

    Thanks,
    Shane

    #1912117

    Shane
    Supporter

    Languages: English (English )

    Timezone: America/Jamaica (GMT-05:00)

    Hi Keith,

    I see the issue. However to ensure that this isn't being caused by a plugin conflict.

    Would it be possible to temporarily disable all your non-toolset plugins and check again to see if this issue remains ?

    Once you've done this please let me know and I will have another look at the issue for you.

    Thanks,
    Shane

    #1912395

    Hi Shane,

    I've disabled all the plugins as requested.

    If you can kindly relook at this again that would be much appreciated.

    Many thanks,
    Andy

    #1912453

    Shane
    Supporter

    Languages: English (English )

    Timezone: America/Jamaica (GMT-05:00)

    Hi Keith,

    Thank you for the patience, the url should be formatted like this for it to work /services/health-safety

    Please let me know if this helps now.

    Thanks,
    Shane

    #1912469

    Thank you, Shane! That has worked. Really appreciate your help 🙂

    #1912471

    Shane
    Supporter

    Languages: English (English )

    Timezone: America/Jamaica (GMT-05:00)

    Hi Keith,

    No problem. If there are no further queries then you can go ahead and mark this ticket as resolved.

    Thanks,
    Shane

    This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.