تفصیل
Normal WordPress blocks do not show how a shortcode will look on the front end. This block renders the shortcode in the editor so you can check the result without opening the front end.
How to use
- Add the Shortcode with Preview block.
- Enter a shortcode, for example
[gallery]. - The preview below the field shows the rendered output.
بلاکس
یہ پلگ ان 1 بلاک مہیا کرتی ہے۔
- Shortcode with Preview Shows a preview of any shortcode in the editor. It renders the shortcode on the editor side so you do not need to view the front end to see the result.
انسٹالیشن
- Upload the plugin files to
/wp-content/plugins/shortcode-with-preview-block, or install it through the Plugins screen. - Activate the plugin through the Plugins screen.
- Edit a post or page and insert the Shortcode with Preview block.
عمومی سوالات
-
Does this replace the core Shortcode block?
-
No. Use this block when you want to see the rendered shortcode while editing.
-
Which WordPress version does this require?
-
WordPress 6.3 or newer, and PHP 7.2 or newer. It is tested with WordPress 7.1.
جائزے
شراکت دار اور ڈیویلپرز
“Shortcode Preview Block” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ لیا:
شراکت دار“Shortcode Preview Block” کا 2 زبانوں میں ترجمہ کیا گیا ہے۔ تعاون کے لیے مترجمین کا شکریہ۔
“Shortcode Preview Block” کا اپنی زبان میں ترجمہ کریں۔
ڈویلپمینٹ میں دلچسپی ہے؟
کوڈ براؤز کریں، ایس این وی ریپوزیٹری کو چیک کریں یا ڈویلپمینٹ لاگ کو سبسکرائب کریں بذریعہ آر ایس ایس۔
چینج لاگ
1.1.0
- Tested with WordPress 7.1.
- Register the block from block.json as apiVersion 3 so it loads in the current block editor.
- Load the editor script with the block editor and server-side render dependencies it uses.
- Keep sidebar shortcode text as plain text so markup is not saved into the shortcode.
1.0.0
- Initial release.