humanmade/shortcake

Name: shortcake

Owner: Human Made

Description: Shortcake makes using WordPress shortcodes a piece of cake.

Forked from: wp-shortcake/shortcake

Created: 2016-05-19 07:14:49.0

Updated: 2016-05-19 07:14:50.0

Pushed: 2016-11-15 12:01:50.0

Homepage: http://fusion.net/topic/shortcake-wordpress-plugin/

Size: 1924

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Shortcake (Shortcode UI)

Contributors: fusionengineering, mattheu, danielbachhuber, zebulonj, goldenapples, jitendraharpalani, sanchothefat, bfintal, davisshaver, garyj, mte90, fredserva, khromov, bronsonquick, dashaluna Tags: shortcodes Requires at least: 4.1 Tested up to: 4.4 Stable tag: 0.6.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Shortcake makes using WordPress shortcodes a piece of cake.

Description

Used alongside add_shortcode, Shortcake supplies a user-friendly interface for adding a shortcode to a post, and viewing and editing it from within the content editor.

Once you've installed the plugin, you'll need to register UI for your shortcodes. For inspiration, check out examples of Shortcake in the wild.

To report bugs or feature requests, please use Github issues.

Installation

Shortcake can be installed like any other WordPress plugin.

Once you've done so, you'll need to register the UI for your code.

New in 0.4.0 is the ability to attach javascript functions to event attribute updates. Action hooks can be used to dynamically show or hide a field based on the value of another, or to implement custom validation rules.

Frequently Asked Questions

= How do I register UI for arbitrary key=>value pairs as shortcode attributes? =

Shortcake doesn't support custom key=>value pairs as shortcode attributes because it isn't a great user experience.

Screenshots
1. Without Shortcake, shortcodes have a minimal UI.

Without Shortcake, shortcodes have a minimal UI.

2. But with Shortcake, TinyMCE will render the shortcode in a TinyMCE view.

But with Shortcake, TinyMCE will render the shortcode in a TinyMCE view.

3. And add a user-friendly UI to edit shortcode content and attributes.

And add a user-friendly UI to edit shortcode content and attributes.

4. Add new shortcodes to your post through “Add Media”.

Add new shortcodes to your post through "Add Media".

Upgrade Notice
0.4.0

We've removed the compatibility shim for the placeholder attribute argument. You should register a placeholder for your field using the meta argument.

0.3.0

We've removed the compatibility shim for the magical content attribute. If you were using this to support editing inner content, you'll need to change your UI registration to use inner_content.

Changelog
0.6.4 (June 1, 2016)
0.6.3 (May 19, 2016)
0.6.2 (November 12, 2015)
0.6.1 (November 9, 2015)
0.6.0 (November 2, 2015)
0.5.0 (August 26, 2015)
0.4.0 (June 22, 2015)
0.3.0 (April 27, 2015)
0.2.3 (April 8, 2015)
0.2.2 (April 6, 2015)
0.2.1 (March 18, 2015)
0.2.0 (March 18, 2015)
0.1.0 (December 23, 2014)

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.