-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong parent shortcode returned in nested shortcodes #29
Comments
Hi @giansi, could you tell me a bit about how you use this library? Maybe a failing test or a gist to debug? |
Oh, I see that you're working on GravCMS with @rhukster. :) Could you please check the current |
To be honest the new branch breaks my code while it works with @rhukster plugins, so it is something on my side. I have to fix that problem then I'll let you know. |
@giansi this library was committed directly into @rhukster plugins repository (last time I looked at it, it was not installed through composer) without my new commits so if it breaks something for you it may mean that there are still bugs I was unable to find. Please keep me posted on what is wrong and I'll try to help. |
Actually it does not run my handles. When I switch back to previous Here's the actual code I use to instantuiate the new handler
function(ShortcodeInterface $shortcode) use($shortcodeObject) { The $shortcodeObject is correctly created but the handler does not run. |
I recently added a note in |
Hi, |
What is the significance of this |
Hi, the problem was caused by the shortcode name: I chose blurred_jumbotron and this breaks both the WordpressParser and the RegularParser. I fixed simple changing the shortcode name to blurred-jumbotron. @thunderer looks like parents are correct now. |
Yes, underscore |
Hello,
I'm dealing with nested shortcodes and I faced the following issue. Giving this shortcode structure:
calling getParent() on shortcode3 returns the shortcode1 and not the expected shortcode2.
The text was updated successfully, but these errors were encountered: