Base classes for creating WordPress shortcodes.

Overview

WDS Shortcodes

Contributors: WebDevStudios, jtsternberg, JayWood
Donate link: http://webdevstudios.com
Tags: shortcode button, shortcodes, cmb2, utility
Requires at least: 4.3
Tested up to: 4.3
Stable tag: 1.0.7
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

WebDevStudios. WordPress for big brands.

Description

WDS-Shortcodes gives developers the ability to easily register shortcodes with a corresponding button, so never again will your client ask, What's that shortcode again? Not only can you easily handle the button and shortcode registration, this also supports self-closing and wrapping shortcodes with a simple config flag.

Please note: you will need to run composer install in order to fetch the dependenceis for this plugin/library, or you can download the zip here.

Additionally, there is also built-in CMB2 support so you can use all your favorite fields.

For more info, check out the wiki.

To see a demo plugin, check out "Cool Shortcode".

Installation

Manual Installation

  1. Upload the entire /wds-shortcodes directory to the /wp-content/plugins/ directory.
  2. Activate WDS Shortcodes through the 'Plugins' menu in WordPress.

Frequently Asked Questions

  • None as of yet

Screenshots

Changelog

1.0.7

  • Update for new version of shortcode button, where ajax_parse_shortcode is now an object method (vs class method).

1.0.6

1.0.5

1.0.4

  • Update shortcode-button dependency to fix modal displaying before CSS loads.

1.0.3

  • WDS_Shortcode_Instances::get() now accepts a secondary argument, $index, for selecing the exact object instance under the shortcode namespace.

1.0.2

  • Add new method, WDS_Shortcode::json_decode_att(), for getting decoded json attribute values. Handles converting the pseudo-json format used when storing array field datat.

1.0.1

  • Add new method, WDS_Shortcode::bool_att(), for getting boolean attribute values. Handles converting "false" and "0" strings to false.
  • Undefined notice fix: Check if attribute value is a string before checking if it is json.
  • Fix issue where faux json_encoded arrays were not being properly translated back to a php array.

1.0.0

  • Update to be used as a library primarily (using wp-lib-loader). Will break back-compat for plugins extending the WDS_Shortcode_Admin class before the 'init' hook.

0.1.3

  • Update composer lock file and zip file after updating Shortcode_Button dependency.

0.1.2

  • New method, WDS_Shortcode::maybe_json() which automatically converts attributes from the modifed JSON string created by Shortcode_Button into a normal PHP array.

0.1.1

  • Fix issues with ajax hooks not working (as they get hooked too late)

0.1.0

  • First release
Comments
  • Composer: Require CMB2?

    Composer: Require CMB2?

    @jtsternberg Since CMB2 is required for the use of fields in the modal, should we require that in composer or merely document that it is required in the wiki/readme file?

    opened by JayWood 4
  • Could not scan for classes inside...

    Could not scan for classes inside...

    Running composer install and getting the same error Michael was getting in Issue #4. Not seeing a resolution to this. Any ideas?

    ===

    @JayWood @jtsternberg Either of you have thoughts on this error?

    [RuntimeException]                                                                                                                                            
      Could not scan for classes inside "/.../vendor/webdevstudios/  
      wds-shortcodes/vendor/tgmpa/tgm-plugin-activation/class-tgm-plugin-activation.php" which does not appear to be a file nor a folder
    

    Trying to revise a plugin to have better Composer usage, and this error is cropping up.

    Originally posted by @tw2113 in https://github.com/WebDevStudios/WDS-Shortcodes/issues/4#issuecomment-410924443

    opened by davidshq 2
  • Update composer.json

    Update composer.json

    Capitalization of TGMPA/TGM-Plugin-Activation caused whining when running composer install, changed to all lower case.

    I also removed autoloading of tgm-plugin-activation.php, this should be handled by tgm-plugin-activation itself (which it does) in its composer.json file.

    opened by davidshq 1
  • Include close parameter and The wysiwyg

    Include close parameter and The wysiwyg

    When the include_close parameter is enabled a wysiwyg editor will be added to the shortcode modal. The problem is in the modal wysiwyg editor text tab there are also the shortcode buttons, When I try to insert the shortcode through the modal wysiwyg editor, it will be inserted into the main post wysiwyg editor.

    Since the visual tab in the modal wysiwyg editor do not show the shortcode buttons maybe the shortcode buttons in text tab shouldn't it be removed as well?

    bug 
    opened by nonsensecreativity 1
  • Update composer.json

    Update composer.json

    If a project uses shortcode-button as a dependency, wds-shortcodes currently breaks because it hard codes the path it expects shortcode-button to reside at, namely:

    /vendor/webdevstudios/wds-shortcodes/vendor/jtsternberg/shortcode-button/shortcode-button.php

    Whereas the shortcode-button dependency will actually be installed at:

    /vendor/jtsternberg/shortcode-button/shortcode-button.php

    Removing the autoload lines relating to shortcode-button will resolve this issue, Composer automatically handles ensuring wds-shortcodes has access to its dependencies.

    opened by davidshq 0
  • Little Cleanup, and Composer CMB2 Require

    Little Cleanup, and Composer CMB2 Require

    See issue #4 for details. Despite the fact CMB2 is required via autoload, it's failing to display form fields. Still working on that issue, so feel free to not merge this until that's done.

    At minimum I wanted to get this up so we can discuss that issue mainly, and hopefully get that fixed.

    opened by JayWood 0
  • Update packagist.org with latest WDS-Shortcodes

    Update packagist.org with latest WDS-Shortcodes

    Thanks for merging the patch for composer.json, but as of this moment the package hasn't been updated on packagist.org, meaning composer based installs still fail. Any chance of getting that updated? Thanks!

    opened by davidshq 0
Releases(v1.0.7)
Owner
WebDevStudios
Your Success Is Our Mission.
WebDevStudios
Plugin for WordPress Full Site Editing That Sets Smart CSS defaults & Removes Auto generated classes.

WazFrame Enhanced This plugin removes autogenerated classes from WordPress that comes from theme layout support for contentSize and wideSize in theme.

Frank Wazeter 4 Feb 15, 2022
A PHP Class for creating Wordpress Custom Post Types easily

N.B I've released an updated version of the project to a new repository, PostTypes. WP Custom Post Type Class v1.4 A single class to help you build mo

Joe Grainger 412 Nov 25, 2022
Querycase provides a convenient, fluent interface for creating and running database queries in WordPress.

Querycase database for WordPress Dependency-free library to create SQL Queries in WordPress. Explore the documentation → ℹ️ About Querycase Querycase

Alessandro Tesoro 7 Oct 17, 2021
A package that makes creating WordPress settings pages a breeze.

WP Settings This package aims to make it easier to create settings pages for WordPress plugins. Typically, you would use the Settings API or write som

Jeffrey van Rossum 43 Nov 24, 2022
Scaffold plugin for creating and managing Blocks, Block Patterns, Block Styles and Block Editor Sidebars in the WordPress Block Editor (aka Gutenberg).

WordPress Block Editor Scaffold This project is a template repo for developing WordPress Blocks, Block Patterns, Block Styles and Block Editor Sidebar

Rareview 6 Aug 2, 2022
A super simple abstraction to make creating a custom Taxonomies in WordPress a breeze

A super simple abstraction to make creating a custom Taxonomies in WordPress a breeze

Joe Grant 2 Apr 5, 2022
A custom WordPress nav walker class to fully implement the Twitter Bootstrap 4.0+ navigation style (v3-branch available for Bootstrap 3) in a custom theme using the WordPress built in menu manager.

WP Bootstrap Navwalker This code in the main repo branch is undergoing a big shakeup to bring it in line with recent standards and to merge and test t

WP Bootstrap 3.3k Jan 5, 2023
A curated list of Awesome WordPress Theme, Plugins and Framework development Resources and WordPress Communities.

Awesome WordPress A curated list of Awesome WordPress Theme, Plugins and Framework development Resources and WordPress Communities. Inspired by bayand

Dropndot Limited 91 Dec 26, 2022
The Pronamic WordPress Basecone plugin allows you to connect your WordPress installation to Basecone.

Pronamic WordPress Basecone The Pronamic WordPress Basecone plugin allows you to connect your WordPress installation to Basecone. Table of contents Au

Pronamic 1 Oct 19, 2021
A WordPress plugin to suspend WordPress sites automagically. Simple and lightweight, no annoying ads and fancy settings.

Suspend WP A WordPress plugin to suspend WordPress sites automagically. Simple and lightweight, no annoying ads and fancy settings. ?? Demo (coming so

Waren Gonzaga 3 Nov 15, 2021
Twenty Twenty-Two, the default WordPress theme that will launch with WordPress 5.9.

Twenty Twenty-Two Welcome to the development repository for the default theme that will launch with WordPress 5.9. About Twenty Twenty-Two is designed

null 414 Nov 28, 2022
Easy handle APlayer on WordPress. A shortcode for WordPress to using APlayer.

Description Easy handle APlayer on WordPress. A shortcode for WordPress to using APlayer. Support [audio] tag, compatible with AMP. Requirement WordPr

Karl Chen 24 Nov 3, 2022
WordPress plugin that lets you use Discourse as the community engine for a WordPress blog

WP Discourse Note: the wp-discourse plugin requires >= PHP-5.4.0. The WP Discourse plugin acts as an interface between your WordPress site and your Di

Discourse 497 Dec 10, 2022
WordPress & TypeScript. Simple starter template for WordPress projects

WordPress & TypeScript. Simple starter template for WordPress projects that want to use TypeScript in combination with @wordpress/scripts

Make it WorkPress 11 Sep 27, 2022
Simple WordPress plugin to learn how to understand WordPress Crons and the Action Scheduler library.

Simple WordPress plugin to learn how to understand WordPress Crons and the Action Scheduler library. Import Jamendo playlists with tracks in WordPress posts.

Pierre Saikali 3 Dec 7, 2022
A PHP client for Wordpress websites that closely implement the XML-RPC WordPress API

Wordpress XML-RPC PHP Client A PHP client for Wordpress websites that closely implement the XML-RPC WordPress API Created by Hieu Le MIT licensed. Cur

Hieu Le 112 Nov 10, 2022
Automattic 10.7k Jan 2, 2023
WordPress Framework based on parent theme

Cherry Framework The most delicious WordPress framework Fully responsive design, easy install, steady updates, great number of shortcodes and widgets,

Cherry Framework 158 Nov 23, 2022
A better way to create WordPress themes.

Runway Framework for WordPress Visit the Runway website: RunwayWP.com A better way to create WordPress themes. Runway was built for creating WordPress

Parallelus 214 Nov 18, 2022