soflyy / breakdance-bugs

Bug reports from Breakdance users.
40 stars 6 forks source link

Shortcodes in heading, texts, and other elements are not processed when using Breakdace templates #1060

Closed ci2014 closed 4 months ago

ci2014 commented 5 months ago

Shortcodes in heading, texts, and other elements are not processed when using Breakdace templates

Clear description of the bug:

  1. Use any theme, or breakdance-zero-theme: soflyy/breakdance-zero-theme (github.com)
  2. add to functions php

add_shortcode('my_custom_shortcode', 'my_custom_shortcode_function'); function my_custom_shortcode_function() { return "World"; }

  1. Use [my_custom_shortcode] anywhere in a page created with breakdance, for example, a heading with the Text "Hello [my_custom_shortcode]!". Result will be Hello World!

  2. Create a template using breakdance and apply it to any page. Use the same heading in the template "Hello [my_custom_shortcode]!" will return "Hello [my_custom_shortcode]!" instead of Hello World!

    • Breakdance version: 1.7
    • Browser & OS: Microsoft Edge on Mac
breakdancemoderator commented 4 months ago

To use shortcodes in Breakdance, either:

ci2014 commented 4 months ago

@breakdancemoderator You marked it as completed, but you did not understand the issue, that the shortcodes are processed in a page, but not processed in a template. They are handled differently, and that is a bug.