WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by ethanpil v1.0

optiontree Shortcode

Add a [ot_get_option] shortcode to the Wordpress editor to include data from OptionTree.

optiontree Shortcode

The facts

Rating
5★ from 1
Active installs
200+
Price
Free
Last updated
25 Sep 2013
Added
Sep 2013
Requires WP
3.0
Tested up to
WP 3.6.1
Downloads
3,111

Our analysis

AI-assisted

The OptionTree Shortcode plugin adds a shortcode [ot_get_option] to WordPress, allowing you to pull information from the OptionTree settings directly into your post content. It is designed for users who need to implement variations of their site while managing options through a user interface instead of PHP code.

This plugin works with the same values as the ot_get_option() function but is limited to text-based options. It is particularly useful for those already using the OptionTree plugin, as it facilitates the integration of settings into posts without needing to remember every instance where changes are required.

Best for: This plugin is suitable for WordPress users who are already using the OptionTree plugin and need to incorporate settings into their content.

What it does well

  • Adds a shortcode for easy use in posts
  • Supports the same values as ot_get_option()
  • Allows for variations in site implementation

Where it falls short

  • Only works with text-based options
  • Requires OptionTree plugin to be useful
  • Last updated in September 2013

Verdict

OptionTree Shortcode provides a straightforward way to use OptionTree settings in posts, but its utility is limited to those already using the OptionTree plugin and it has not been updated recently.

From the developer

ethanpil's own description of optiontree Shortcode, lightly tidied.

This plugin adds a shortcode [ot_get_option] to pull info from like the function ot_get_option(). Its very simple to use and supports the same values as ot_get_option().

BEWARE: It will not work with options that return non-text values.

Why a shortcode and not the function in PHP? Sometimes I need to implement slight variations of the same site. This allows me to set my options in the UI and have the values propagate into the post content as needed without remembering every place that needs changes.

If you aren’t using OptionTree ( https://wordpress.org/plugins/option-tree/ ) this will probably be useless for you!

Its used like this:

[ot_get_option option_id="XYZ" default="123"]

This is the equivalent of the following in PHP:

ot_get_option("XYZ","123");

Fork away: https://github.com/ethanpil/wp-optiontree-shortcode

Read the full description on the official page →

Tagged as

feature Shortcodes
topic Add