Skip to content
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

Allow nesting code snippet shortcodes within code snippet shortcodes #198

Open
sheabunge opened this issue Dec 5, 2024 · 0 comments
Open

Comments

@sheabunge
Copy link
Member

Is your feature request related to a problem? Please describe

There is currently no way to use the [code_snippet] shortcode within a HTML snippet, even with PHP and 'Evaluate additional shortcode tags' enabled.

Describe the solution you'd like

Create a HTML snippet with the following code:

[code_snippet id=42 php shortcodes]

Create a second HTML snippet that references this first snippet:

<div> [code_snippet id=1 php shortcodes] </div>

The second snippet should render the content of the first by evaluating the shortcode.

Describe alternatives you've considered

No response

Additional context

Originally raised by daisensou here: https://wordpress.org/support/topic/nesting-a-shortcode-inside-a-html-snippet/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant