Skip Navigation

[Closed] Can't nest shortcodes

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.

Our next available supporter will start replying to tickets in about 5.24 hours from now. Thank you for your understanding.

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, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2543753

I am trying to: nest shortcodes 3 levels

I expected to see: it working

Instead, I got: an error

I'll explain what I need and perhaps there is an easier solution. I have several post hierarchies, i.e. trees with at the top a parent with no parent, it's the root.

Once in the tree/hierarchy, I need to know what the root post is.

Sure, I can climb up, and that's what I'm trying to do, but for that to work I need the following which is nesting 3 levels.

[wpv-view name="get-course-content" ids="[wpv-view name='get-root-id-for-hierarchy' ids='[wpv-post-id]']" root="true" content="[wpv-post-field name='wpcf-course-content-type']"]

get-course-content : builds the tree based on the id its been passed

get-root-id-for-hierarchy : looks at the current post id, which is passed to it as the 3rd level nested shortcode [wpv-post-id] and it returns the root parent.

This last bit is where it crashes.

This works on its own and returns as expected [wpv-view name='get-root-id-for-hierarchy' ids='[wpv-post-id]']

When run within the other view it erros.

#2543987

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I will have to look at the error. Can you please share problem URL and what is your expected results.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

The topic ‘[Closed] Can't nest shortcodes’ is closed to new replies.