=== Blocks to Shortcode - Use blocks everywhere: in page templates, Elementor, etc. ===
Contributors: pluginenvision, freemius
Donate link: https://www.buymeacoffee.com/pluginenvision
Tags: use blocks anywhere, elementor blocks, gutenberg shortcode, gutenberg in shortcode, content reuse
Requires at least: 6.2+
Tested up to: 6.9
Stable tag: 0.13
Requires PHP: 7.2
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Easily convert blocks into shortcodes and reuse them anywhere on your site - in posts, pages, widgets, templates, and page builders like Elementor.

== Description ==

Blocks to ShortCode allows you to create custom Gutenberg block layouts in specific post types and easily convert them into your own Gutenberg shortcodes. Use these shortcodes in pages, posts, widgets, or templates to display Gutenberg blocks to shortcode anywhere on your website.

Whether you want to display blocks in Elementor or other page builders, this plugin seamlessly integrates. Design once and reuse block layouts across different sections of your website, making it easy for consistent design and content reuse. 

Simplify your workflow, save time, and centralize your block-based design with the Blocks to ShortCode plugin. Ideal for developers and content creators who want flexibility, control, and efficiency for their projects.


### Blocks to ShortCode Features
- **Custom Post Type for Blocks**: Easily manage and create reusable blocks in a dedicated post type.
- **Automatic ShortCode Generation**: Each post generates a unique ShortCode for easy embedding.
- **Embed Anywhere**: Use the generated ShortCode in pages, posts, widgets, or templates.
- **Gutenberg Compatible**: Built to work seamlessly with the Gutenberg editor.
- **Centralized Block Management**: Make changes once in the block post, and they update everywhere the ShortCode is used.
- **ShortCode Selector block**: Select your Blocks to ShortCode in Gutenberg.


### Blocks to ShortCode Premium Features
- **Customization around ShortCode content**: Make better looks with customization bellow.
- **Dimension**: Each post generates a unique ShortCode for easy embedding.
- **Embed Anywhere**: Use the generated ShortCode in pages, posts, widgets, or templates.
- **Gutenberg Compatible**: Built to work seamlessly with the Gutenberg editor.
- **Centralized Block Management**: Make changes once in the block post, and they update everywhere the ShortCode is used.


### How to use Blocks to ShortCode
- Begin by installing the Blocks to ShortCode plugin.
- Add New ShortCode from the "Blocks to ShortCode" post menu from the dashboard.
- Add the blocks in the content area.
- New ShortCode post will generate a **ShortCode**, use this ShortCode in your place.
- Enjoy!

#### For installation assistance, click on the **Installation** tab.


### User Feedback

#### Did you find this plugin helpful or have any concerns? Do you have a feature request? [Please share your feedback with us](https://pluginenvision.com/support/ 'Send feedback')


== Installation ==

### Download & Upload:
1. Download the **Blocks to ShortCode** plugin (*.zip file*).
2. In your admin area, go to the **Plugins** menu and click on **Add New**.
3. Click on **Upload Plugin** and choose the **`blocks-to-shortcode.zip`** file and click on **Install Now**.
4. Activate the plugin.


== Frequently Asked Questions ==

= How do I create a ShortCode for a block? =
Create a new post in the **Blocks to ShortCode** post type, add your block content, and publish. A ShortCode will be generated for this post.

= Where can I use these ShortCodes? =
You can use them anywhere in WordPress: posts, pages, widgets, or PHP templates.

= Will the block content update automatically if I change it in the block post? =
Yes, any updates you make to the block post content will reflect wherever the ShortCode is used.

= Can I customize the style of the blocks displayed through ShortCodes? =
The blocks will inherit the styles from your theme or block settings.

= Where can I get support for this plugin? =
You can post your questions on the [support forum here](https://wordpress.org/support/plugin/envision-page-builder).


== Screenshots ==

1. Usages
2. Settings


== Changelog ==

= 0.13 - 13th April 26 =
* **New:** Admin Dashboard providing a centralized interface.
* **Fix:** Data sanitization and input validation to address security vulnerabilities.

= 0.12 - 22th Aug 25 =
* Add ShortCode Selector block.
* Customization around the block content.

= 0.11 - 18th May 25 =
* Update SDK.

= 0.10 - 8th April 25 =
* Add more tag support.
* Also support for core/shortcode block content.

= 0.09 - 23th February 25 =
* Optimize the plugin.

= 0.08 - 31th January 25 =
* Fix YouTube iframe issue.

= 0.07 - 27th January 25 =
* Update SDK.

= 0.06 - 25th January 25 =
* Add missing attributes of SVG.

= 0.05 - 18th January 25 =
* SVG support.

= 0.04 - 29th December 24 =
* Only loads scripts where it needs.

= 0.03 - 13th December 24 =
* Update SDK.

= 0.02 - 2nd December 24 =
* Add copy function and style on the admin ShortCode page.

= 0.01 - 16th November 24 =
* Initial Release.