{"id":141997,"date":"2021-06-04T15:21:32","date_gmt":"2021-06-04T15:21:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/blocksolid-snippets\/"},"modified":"2025-04-23T14:12:17","modified_gmt":"2025-04-23T14:12:17","slug":"blocksolid-snippets","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/blocksolid-snippets\/","author":18613496,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.3","stable_tag":"1.1.3","tested":"6.8.5","requires":"5.5","requires_php":"5.6","requires_plugins":null,"header_name":"Blocksolid Snippets","header_author":"Peripatus Web Design","header_description":"Snippets of code are contained in a custom post type that can then be called via a Gutenberg block or a simple shortcode","assets_banners_color":"5c8373","last_updated":"2025-04-23 14:12:17","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.peripatus.uk\/payments\/","header_plugin_uri":"https:\/\/www.peripatus.uk\/blocksolid-snippets","header_author_uri":"https:\/\/www.peripatus.uk","rating":5,"author_block_rating":0,"active_installs":20,"downloads":2462,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"peripatus","date":"2021-06-04 15:21:08"},"1.0.2":{"tag":"1.0.2","author":"peripatus","date":"2021-07-20 13:14:46"},"1.0.3":{"tag":"1.0.3","author":"peripatus","date":"2021-09-22 13:57:04"},"1.0.4":{"tag":"1.0.4","author":"peripatus","date":"2021-09-27 10:09:54"},"1.0.5":{"tag":"1.0.5","author":"peripatus","date":"2022-01-07 09:57:15"},"1.0.6":{"tag":"1.0.6","author":"peripatus","date":"2022-01-10 15:04:30"},"1.0.7":{"tag":"1.0.7","author":"peripatus","date":"2022-12-31 15:19:54"},"1.0.8":{"tag":"1.0.8","author":"peripatus","date":"2023-08-07 15:26:26"},"1.0.9":{"tag":"1.0.9","author":"peripatus","date":"2023-10-24 10:56:24"},"1.1.0":{"tag":"1.1.0","author":"peripatus","date":"2024-03-18 16:15:42"},"1.1.1":{"tag":"1.1.1","author":"peripatus","date":"2024-08-01 14:36:05"},"1.1.3":{"tag":"1.1.3","author":"peripatus","date":"2025-04-23 14:12:17"}},"upgrade_notice":{"1.0":"<p>This is the first public release to be published<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128\u00d7128.png":{"filename":"icon-128\u00d7128.png","revision":2542668,"resolution":"128x128","location":"assets","locale":""},"icon-256\u00d7256.png":{"filename":"icon-256\u00d7256.png","revision":2542668,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544\u00d7500.png":{"filename":"banner-1544\u00d7500.png","revision":2542668,"resolution":"1544x500","location":"assets","locale":""},"banner-772\u00d7250.png":{"filename":"banner-772\u00d7250.png","revision":2542668,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"pwd\/snippets":{"name":"pwd\/snippets","title":"Snippets"}},"tagged_versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1","1.1.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2542668,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2542668,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2542668,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2542668,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"\/assets\/screenshots\/screenshot-1.png","2":"\/assets\/screenshots\/screenshot-2.png","3":"\/assets\/screenshots\/screenshot-3.png","4":"\/assets\/screenshots\/screenshot-4.png"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[200111,18609,1794,148076,240398],"plugin_category":[],"plugin_contributors":[197795],"plugin_business_model":[],"class_list":["post-141997","plugin","type-plugin","status-publish","hentry","plugin_tags-blocksolid","plugin_tags-code-snippets","plugin_tags-custom-post-type","plugin_tags-gutenberg","plugin_tags-snippets","plugin_contributors-peripatus","plugin_committers-peripatus"],"banners":{"banner":"https:\/\/ps.w.org\/blocksolid-snippets\/assets\/banner-772\u00d7250.png?rev=2542668","banner_2x":"https:\/\/ps.w.org\/blocksolid-snippets\/assets\/banner-1544\u00d7500.png?rev=2542668","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/blocksolid-snippets\/assets\/icon-128\u00d7128.png?rev=2542668","icon_2x":"https:\/\/ps.w.org\/blocksolid-snippets\/assets\/icon-256\u00d7256.png?rev=2542668","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/blocksolid-snippets\/assets\/screenshot-1.png?rev=2542668","caption":"\/assets\/screenshots\/screenshot-1.png"},{"src":"https:\/\/ps.w.org\/blocksolid-snippets\/assets\/screenshot-2.png?rev=2542668","caption":"\/assets\/screenshots\/screenshot-2.png"},{"src":"https:\/\/ps.w.org\/blocksolid-snippets\/assets\/screenshot-3.png?rev=2542668","caption":"\/assets\/screenshots\/screenshot-3.png"},{"src":"https:\/\/ps.w.org\/blocksolid-snippets\/assets\/screenshot-4.png?rev=2542668","caption":"\/assets\/screenshots\/screenshot-4.png"}],"raw_content":"<!--section=description-->\n<p>If your website shows the same content on multiple pages it's best to just keep one copy of this content and to edit that if you need to make site-wide changes.<\/p>\n\n<p>The Blocksolid Snippets plugin lets you manage these \"snippets\" of content using a dedicated custom post type.<\/p>\n\n<p>In the Classic Editor Snippets can be conjured using a simple shortcode such as:<\/p>\n\n<p>[blocksolid_snippet post_title=\"My Snippet\"]<\/p>\n\n<p>If you use Gutenberg our included Snippets block allows you to choose your snippet from a list and live-preview it within your page.<\/p>\n\n<p>Your snippet can contain formatted text, images, videos, [shortcodes], HTML, gutenberg blocks, any valid WordPress content.<\/p>\n\n<p>If you are using our separate Blocksolid plugin as a page builder and Gutenberg overlay the Blocksolid Snippets plugin also integrates well with this.<\/p>\n\n<h4>Blocksolid Snippets Features<\/h4>\n\n<ul>\n<li>Snippets of code are contained in a custom post type that can then be called via a Gutenberg block or a simple shortcode<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ul>\n<li><p>Install the plugin using the WordPress 'Add New plugin' functionality and activate.<\/p><\/li>\n<li><p>Once activated a new Snippets menu item will appear in your WordPress menu to allow you to create new snippets of content.<\/p><\/li>\n<li><p>Give each of your snippets a unique title e.g. \"My Snippet\".<\/p><\/li>\n<li><p>You can then call your snippet via a short code like [blocksolid_snippet post_title=\"My Snippet\"]<\/p><\/li>\n<li><p>if you use the built-in Gutenberg block editor for your website you can use the plugin's bespoke 'Snippets' block to place the snippet within your content.<\/p><\/li>\n<li><p>The Snippets block give you a live preview of your snippet within the Gutenberg editor.<\/p><\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.1.3<\/h4>\n\n<p>*Set the __nextHasNoMarginBottom prop to true for back-end controls - 14 October 2024*<\/p>\n\n<h4>1.1.2<\/h4>\n\n<p><em>WP 6.7 throws warning: Warning: A props object containing a \"key\" prop is being spread into JSX - removed keys - 26 September 2024<\/em><\/p>\n\n<h4>1.1.1<\/h4>\n\n<p><em>WP 6.5 puts the editor in iframes in certain circumstances - now using 'enqueue_block_assets' instead of 'admin_enqueue_scripts'.  Added 'custom-fields' to snippets post type support to allow use of Options &gt; Preferences &gt; Panels &gt; Custom fields switch.  This is required to stop in-iframe editing which in turn allows a non modal popup classic editor panel - 01 September 2024<\/em><\/p>\n\n<h4>1.1.0<\/h4>\n\n<p><em>React code updated, bumped up to WordPress 6.5 - 18 March 2024<\/em><\/p>\n\n<h4>1.0.9<\/h4>\n\n<p><em>Removed deprecated third parameter from shortcode - 24 October 2023<\/em><\/p>\n\n<h4>1.0.8<\/h4>\n\n<p><em>Replaced deprecated function get_page_by_title() - 10 March 2023<\/em><\/p>\n\n<h4>1.0.7<\/h4>\n\n<p><em>Small change to allow Snippets to respect switching off of Blocksolid overlay - 21 January 2022<\/em><\/p>\n\n<h4>1.0.6<\/h4>\n\n<p><em>Small change to give Snippets its own custom icon - 10 January 2022<\/em><\/p>\n\n<h4>1.0.5<\/h4>\n\n<p><em>Streamlined JS code and added Snippets icon to block - 7 January 2022<\/em><\/p>\n\n<h4>1.0.4<\/h4>\n\n<p><em>Fixed block rendering in admin and improved in front-end - 27 September 2021<\/em><\/p>\n\n<h4>1.0.3<\/h4>\n\n<p><em>Better compatibility with MemberPress - 22 September 2021<\/em><\/p>\n\n<h4>1.0.2<\/h4>\n\n<p><em>Tested with WordPress 5.8 - 20 July 2021<\/em><\/p>\n\n<h4>1.0.1<\/h4>\n\n<p><em>Snippets blocks lists snippets alphabetically - 03 June 2021<\/em><\/p>\n\n<h4>1.0<\/h4>\n\n<p><em>Release Date - 02 June 2021<\/em><\/p>\n\n<p>First release<\/p>","raw_excerpt":"Snippets functionality with a custom post type, shortcode and optional Gutenberg block.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/141997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=141997"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/peripatus"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=141997"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=141997"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=141997"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=141997"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=141997"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=141997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}