Changeset 3264857
- Timestamp:
- 04/01/2025 06:06:53 AM (12 months ago)
- Location:
- content-shortcode-generator/trunk
- Files:
-
- 3 edited
-
block.js (modified) (1 diff)
-
content-shortcode-generator.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
content-shortcode-generator/trunk/block.js
r3244521 r3264857 23 23 { 24 24 value: props.attributes.postId || '', 25 options: (posts || []).map( function( post ) { 26 return { label: post.title.rendered, value: post.id }; 27 }), 25 options: [{ label: 'Select Content', value: '' }].concat( 26 (posts || []).map( function( post ) { 27 return { label: post.title.rendered, value: post.id }; 28 }) 29 ), 28 30 onChange: function( value ) { 29 31 props.setAttributes( { postId: parseInt(value) } ); -
content-shortcode-generator/trunk/content-shortcode-generator.php
r3252749 r3264857 3 3 * Plugin Name: Content Shortcode Generator 4 4 * Description: Create any type of content using Gutenberg editor and insert it anywhere via shortcodes. 5 * Version: 1. 15 * Version: 1.2 6 6 * Author: WPEasyTools 7 7 * Author URI: https://wpeasytools.com/ … … 99 99 if (!$post || $post->post_type !== 'contshge_content' || $post->post_status !== 'publish') return ''; 100 100 101 return apply_filters('the_content', $post->post_content); 101 $content = apply_filters('the_content', $post->post_content); 102 return wp_kses_post(balanceTags($content, true)); 102 103 } 103 104 add_shortcode('contshge_content', __NAMESPACE__ . '\\contshge_content_shortcode'); … … 194 195 } 195 196 add_action('pre_get_posts', __NAMESPACE__ . '\\contshge_filter_content_by_category_query'); 197 198 function contshge_custom_mark_css() { 199 echo '<style>mark { background: none !important; }</style>'; 200 } 201 add_action('wp_head', __NAMESPACE__ . '\\contshge_custom_mark_css'); -
content-shortcode-generator/trunk/readme.txt
r3261689 r3264857 2 2 Contributors: wpeasytools 3 3 Donate link: https://www.wpressblog.com/ 4 Tags: shortcode, shortcode generator, content shortcode, content shortcode generator, Shortcode WordPress4 Tags: content, shortcode, custom content, shortcode generator, 5 5 Requires at least: 5.0 6 6 Tested up to: 6.7 7 Stable tag: 1. 17 Stable tag: 1.2 8 8 Requires PHP: 7.2 9 9 License: GPLv2 or later … … 22 22 - **Admin Table Integration:** Displays the generated shortcode directly in the admin posts table for easy copying. 23 23 - **Gutenberg Block:** Easily add content as a block in the Gutenberg editor. 24 25 You can check all the features and how to use the content shortcode generator plugin [from here](https://www.wpressblog.com/content-shortcode-generator-plugin/). 24 26 25 27 == Installation == … … 53 55 == Changelog == 54 56 57 = 1.2 = 58 * Removed unwanted p tags, showing when using shortcode on multiple places on website. 59 * Added first option as select option in gutenberg block. 60 * Removed background color for marked text. It happen when removed extra p tags. 61 55 62 = 1.1 = 56 63 * Category filter solved.
Note: See TracChangeset
for help on using the changeset viewer.