Skip Navigation

[Resolved] Relationship Slug Change

This thread is resolved. Here is a description of the problem and solution.

Problem:
How can I change the slug of a relationship in Toolset Types?

Solution:
https://toolset.com/forums/topic/relationship-slug-change/#post-784807

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

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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 5 replies, has 3 voices.

Last updated by saint 6 years, 7 months ago.

Assisted by: Beda.

Author
Posts
#757914

Hi there,

I noticed that it said you cannot change the slug for the Relationships and would like to request the feature to allow for that to happen.

Sometimes people make mistakes, or more often than not, as we create the architecture, things change, another slug makes more sense, or another relationship slug makes more sense to use and should override this to represent the 2 other CPTs.

Could we have the ability to change relationship slugs?

#763459

Hi, I'll pass this feature request along to Beda, who handles feature requests for Types. I'm not aware of the technical limitations here, but it may not be possible. He will follow up with you soon.

#784807
Bildschirmfoto 2018-05-02 um 11.39.19.png

I can change the Slug of a relationship just fine locally.

What you need to be aware of is that any ShortCode will break, which used that slug.
It's visible when you update the slug of a relationship and expected, there is no way to update all used ShortCodes on the fly when the Slug changes in the relationship base settings.

I added a screenshot of what I see.
Updating the Slug works fine, it's just not really suggested as all ShortCodes using that slug will fail after. You would need to update them manually.

#787415

Hi Beda,

Ah, yes, I see that now after clicking on the disclaimer.

For the slug, if we don't use any of the custom fields added in the "Intermediate Object" post, and only pull custom fields from either CPT 1 or CPT 2, then do we need to worry about breaking anything if we change the slug down the road?

Thanks,

#802348

it says it right there:
it will break any shortcode that uses that relationship slug.

If you do not use it, nothing will break, but chances are if you do such an edit you already displayed something hence it'll break.

That's why the overlay is there - it requires an additional layer of attention if you edit such settings afterwards.

#806320

Got it, okay thank you Beda! Understood.