Skip Navigation

Content within Conditional Block added to GeneratePress Premium elements output as shortcodes

Open

Topic Tags: Toolset Blocks

Symptoms

GeneratePress Premium includes a re-usable “Element” feature that can be edited with blocks.

If you insert a Toolset Conditional Block, blocks added as conditional content will render on the front-end as unparsed shortcodes. (And shortcodes added using the native Shortcode block will similarly be output as the name of the shortcode rather than the parsed content.)

Workaround

There is currently no solution available, conditional blocks cannot be used in this context.

2 thought on Content within Conditional Block added to GeneratePress Premium elements output as shortcodes

  • This appears to be true for Gutenberg Reusable Blocks too – so it is a much wider issue, than just for GeneratePress.

  • Issue Potentially Solved:
    1. Create a Toolset Content Template with your conditionals
    2. Call that template from within the Element

    I currently have two types of custom post types that need to be styled differently in search results. Each custom post type has its own (child) template, which is nested into conditionals (based on [wpv-post-type]) on yet another (parent) template. The (parent) template is called in my Element for search results.

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>