=== WP Create Shortcode - Add Custom Shortcodes WordPress === Contributors: hkharpreetkumar1 Donate link: https://wordpress.org/plugins/wp-create-shortcode/ Tags: create shortcode wordpress, wp create shortcode, shortcode creator, custom shortcode wordpress, add shortcode wordpress Requires at least: 6.0 Tested up to: 6.7.1 Requires PHP: 7.4 Stable tag: 1.2.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html WordPress Create Shortcode plugin allows users to add content and and save it as a shortcode to display anywhere within the website. == Description == The **WP Create Shortcode** plugin allows you to **create**, **register**, and **add custom shortcodes** to your WordPress site. With this plugin, you can define custom functions, set parameters, and define attributes for your shortcodes to be used anywhere across your site. You can easily build shortcodes that display dynamic content, such as custom HTML, widgets, or other elements, with a simple shortcode format **`[wpcs id="123"]`**. Each shortcode is saved in the WordPress admin panel and can be managed, edited, or deleted as needed. This plugin offers a great solution to add customized content and functionality to your site without needing to write additional code manually. ### Features: - **Create custom shortcodes** with unique IDs and content, including HTML, dynamic data, and custom functions. - **Manage and register shortcodes** through the WordPress admin interface. - **Add parameters and attributes** to your shortcodes for dynamic functionality. - **List all shortcodes** with their IDs, content, and shortcode format in the admin panel. - **Edit or delete shortcodes** easily from the admin dashboard. == Installation == 1. Download the plugin ZIP file. 2. Navigate to `Plugins -> Add New` in the WordPress admin. 3. Click the `Upload Plugin` button and select the downloaded ZIP file. 4. Click `Install Now` and then `Activate Plugin`. == Usage == 1. After activating the plugin, go to the **WP Create Shortcode** menu in your WordPress dashboard. 2. **Create** a new shortcode by providing a unique ID, content, and optionally, parameters or attributes. 3. To display the shortcode on any post or page, use the shortcode format **`[wpcs id="123"]`** (replace **`123`** with the ID assigned to your shortcode). 4. To manage your shortcodes, navigate to the **Existing Shortcodes** section in the admin panel. You will see a list of all your created shortcodes, along with their content. 5. To **edit** or **delete** a shortcode, click the respective action next to each shortcode entry. == Changelog == = 1.2.2 | December 8, 2024 = - **Fixed:** Resolved the issue with shortcodes being wrapped in paragraph tags. - **Added:** Introduced a "**Copy**" button next to the shortcode for easier usage. - **Updated:** Renamed the shortcode from **cs** to **wpcs** for better consistency and clarity. = 1.2.1 | December 7, 2024 = - **Minor Fixes:** Various improvements and bug fixes applied. = 1.2 | December 6, 2024 = - **Improved UI:** Various user interface improvements and fixes. - **Updated readme.txt file** with more information on shortcode **parameters**, **attributes**, and **functions**. = 1.1 | December 1, 2024 = - **Minor Fixes:** Bug fixes and performance improvements. = 1.0 | November 1, 2024 = - Initial release of the Create Shortcode plugin. == Frequently Asked Questions == = How do I create a new shortcode? = - Navigate to the **Create Shortcode** section in the admin dashboard, provide a unique ID, content for the shortcode, and optionally define any parameters or attributes. Then click the `Save Shortcode` button to create it. = How do I use the shortcode in my posts or pages? = - Use the shortcode format `**[wpcs id="123"]**` where `123` is the ID assigned when creating the shortcode. Optionally, you can also pass parameters within the shortcode, like `**[wpcs id="123" param="value"]**` to customize its output dynamically. = Can I add custom functions to my shortcodes? = - Yes! You can include custom PHP functions or dynamic content within the shortcode content. For example, you could display a dynamic date, a random number, or other server-side generated content using PHP. = Can I add parameters and attributes to my shortcodes? = - Absolutely! You can define custom **parameters** and **attributes** when creating a shortcode. These can be used to customize the output based on the input passed through the shortcode, providing dynamic functionality across different pages. = How can I edit or delete a shortcode? = - To **edit** a shortcode, navigate to the "**Existing Shortcodes**" section and click on the respective shortcode. Modify the content or parameters as needed and click the "**Update**" button. To **delete** a shortcode, simply click the "**Delete**" button next to the shortcode in the list. = Can I create multiple shortcodes with the same content but different IDs? = - Yes, you can create multiple shortcodes with different IDs but identical or different content. Each shortcode will be treated as a separate entity, so you can use them independently in various posts or pages. = Can I display shortcodes conditionally? = - Yes! You can build conditional logic into your shortcode content. For example, you can check if certain parameters are passed and display specific content accordingly. == License == This plugin is licensed under the GPLv2 or later. For more details, see the [GNU General Public License](https://www.gnu.org/licenses/gpl-2.0.html).