Shortcake Bakery adds a fine selection of shortcodes to your WordPress site. Use with Shortcake for the optimal experience.

The following shortcodes are now available for your use within the content field:

  • ABC_News [abc-news]
  • Facebook [facebook]
  • Flickr [flickr]
  • Giphy [giphy]
  • GoogleDocs [googledocs] (Includes several common formats: Documents, Spreadsheets, Presentations, Forms, Maps, and Fusion Tables.)
  • Guardian [guardian]
  • Image Comparison [image-comparison] (Uses the juxtapose.js script from Knight Labs.)
  • Infogram [infogram]
  • Instagram [instagram]
  • Live Photo [live-photo]
  • Livestream [livestream]
  • PDF Viewer [pdf] (PDF documents can be uploaded attachments or remotely hosted documents. A code-based proxy pass can be made available for external documents with a filter.)
  • Playbuzz [playbuzz]
  • Rap_Genius [rap-genius]
  • Scribd [scribd]
  • Script [script] (Requires code-level configuration of accepted domains.)
  • Silk [silk]
  • SoundCloud [soundcloud]
  • Twitter [twitter]
  • Videoo [videoo]
  • Vimeo
  • Vine [vine]
  • YouTube
  • iFrame [iframe] (Requires code-level configuration of accepted domains.)

Shortcake Bakery also enables an “Add Embed Code” experience for Shortcake shortcodes. Clicking the “Add Embed Code” media button will display a form in the media modal where a user can paste an embed code as received from a provider (by copying the embed code from a YouTube video, for one example). If that embed code matches a shortcode registered with the Shortcake Bakery shortcode API, the matched shortcode will be sent to the editor.

See the Installation section for code-level configuration details. Get involved with the project and submit your own shortcodes on Github.

Screenshots

  • Shortcodes are accessible through the Insert Element screen, exposed in the media library.
  • Shortcodes preview in the visual editor, with a quick edit button to provide easy access to attribute fields.
  • The image comparison shortcode is powered by JuxtaposeJS, a tool built by the Northwestern University Knight Lab.
  • We've added an Infogram shortcode that accepts public Infogram URL's.
  • Scribd shortcodes let you embed documents easily in your WordPress content.
  • The script shortcode lets you embed whitelisted sources.
  • Same with the iFrame shortcode.
  • The RapGenius shortcode doesn't do anything in the admin – but on the frontend, it adds annotations to your post.
  • The PDF shortcode wraps your document in a nifty viewer tool.
  • Most Facebook URL's can be embedded with ease.
  • Playbuzz quizs can be embedded, with a few options supported.
  • An "Add Embed" button is added to the editor media buttons.
  • Clicking the "Add Embed" button brings up a from to insert a provided embed code. If an embed code doesn't match a known shortcode, a warning will be displayed. (Note - other plugins such as WordPress VIP's Protected Embeds functionality that reverse arbitrary embed codes to shortcodes in other ways can also hook in to this and make their own replacements.)
  • If an embed code can be recognized as matching one of the Shortcake Bakery shortcodes, or any shortcodes which make use of this plugin's API, it can be inserted from this screen...
  • ... and it will be sent to the editor as the corresponding shortcode, rather than the full embed code.

Categories

Get New Themes & Resources