=== WXP Elementor Shortcode Escape ===
Contributors: wvdploeg
Tags: elementor, shortcode, escape, theme builder
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show a shortcode as text in a post that is displayed by an Elementor Theme Builder template.

== Description ==

You write a blog post about a shortcode and type it in double brackets, `[[my_shortcode]]`, to show it as text. WordPress displays `[my_shortcode]`, but in a single post template made with Elementor Theme Builder the shortcode is executed anyway, because Elementor runs the shortcodes of the finished template a second time.

This plugin fixes that. Put the shortcode in double brackets inside a code block (`<code>` or `<pre>`) and it is shown as text. There are no settings: activate it and it works.

Only the brackets inside `<code>` and `<pre>` blocks are touched. Shortcodes outside those blocks keep working as usual.

= Testing your page builder or theme =

The plugin has a test shortcode, `[wxp_esc_test]`, which only returns the text "The test failed". Write `<code>[[wxp_esc_test]]</code>` in a post and view the post on the front end. If you see `[wxp_esc_test]`, the escaping works. If you see "The test failed", your theme or page builder executes the shortcode anyway. Please let me know which one it is.

== Installation ==

1. Upload the plugin to `/wp-content/plugins/` and activate it.
2. In your post, write the shortcode in double brackets inside inline code or a code block: `[[my_shortcode]]`.

== Changelog ==

= 1.0.0 =
* First version.
