gmazzap/raph

WordPress plugin that renders shortcodes in posts content.

Maintainers

Details

github.com/gmazzap/Raph

Source

Issues

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 19

Watchers: 3

Forks: 2

Type:wordpress-plugin

0.3.1 2015-02-02 16:48 UTC

This package is auto-updated.

Last update: 2024-03-26 13:14:28 UTC


README

WordPress plugin that helps you to covert shortcodes to HTML.

Sorry?

Shortcodes may be useful, but rendering them "on the fly" can be a performance killer.

Moreover, shortcodes added by themes or by plugins, lock you in with those products, because you if you change theme or uninstall plugins that add shortcodes, your content will be bungled when not lost.

Have you ever desired get rid of a plugin, but can't because of shorteds? Now you can.

How it Works

Raph adds a button in in post editor toolbar. When you click that button

  • if nothing is selected all the shortcodes in the post are converted to the same HTML they would output in frontend
  • if something is selected, than only shortcodes in selection are converted

HTML is generated via AJAX and isn't saved until post is saved.

When post is saved, shortcodes are definitely converted to HTML, it means you can even disable the plugin (or switch the theme) that added the original shortcode.

After having rendered shortcodes there is the possibility to immediately restore shortcodes by clicking a link.

Demo

Raph demo

FAQ

  • How can I bulk convert shortcodes?

    At the moment that isn't possible. Maybe it will be in future versions.

  • I selected a shortcode and clicked render button, but nothing happen, is it broken?

    No. When you select some text, you have to keep the selection as is until rendering is complete. Otherwise Raph don't know where to put rendered HTML, and to avoid to mess up your post content it does nohing.

Requirements

  • PHP 5.4+
  • WordPress 4.0+

Installation

The plugin is a Composer package and can be installed in plugin directory via:

composer create-project gmazzap/raph

Alternatively, you can

License

Raph is licensed under MIT.