Skip to content

Allow nesting code snippet shortcodes within code snippet shortcodes #198

Open
@sheabunge

Description

@sheabunge

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/

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions