Skip Navigation

[Resolved] Follow-up on "Slug-to-ID" ticket

This support ticket is created 4 years, 11 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by philippeS-4 4 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1398297
Screenshot 2019-12-03 at 08.16.03.png
Screenshot 2019-12-03 at 08.16.20.png

Hi Nigel,

Follow up call to this ticket https://toolset.com/forums/topic/use-item-with-the-slug-name-instead-of-id/

I have encountered a little snag using the the custom code you provided, it is working great within DIVI text module, if I try to use it within a DIVI field inside a module it doesn't get the post ID and the content is not shown. Not sure if we have reached the limit of Toolset/Divi integration - unless you still have some magic left in you 😉

This is the string I use in a Pricing Table module - in the price field - see screenshot

{!{types field='platinum-price' item='[item slug="conf-settings"]'}!}{!{/types}!}

if I use this line it is working fine

{!{types field='platinum-price' item='34783'}!}{!{/types}!}

Thanks for you continuous support.
Phil

#1398365

Nigel
Supporter

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

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

You could try editing it to use the same custom pagebuilder format for shortcodes for the item shortcode, so

{!{types field='platinum-price' item='{!{item slug="conf-settings"}!}'}!}{!{/types}!}

I don't know if that is going to work, but if it doesn't then I expect that we will have reached a limit, yes.

Let me know what happens.

#1398979

My issue is resolved now. Thank you!