MetaShortcode

Description

MetaShortcode is a lightweight plugin that allows users to display the value any custom (meta) field on the front-end using a simple shortcode.

The module can be disabled from the settings page. Important: The module is inactive by default. If you leave the Enabled box unchecked, the plugin will have no effect at all.

Pattern: [msc custom_field_name]
Shortcodes with the pattern above will display the value stored in custom field name in the post.

Alternative pattern: {msc custom_field_name}
An alternative shortcode pattern, which replaces square brackets with curly braces, can be activated if needed. This can be helpful if you need to use a custom field value as an attribute inside an existing shortcode definition. For example:

invalid: [shortcode name=”example” url=”[msc custom_url_field]”]…[/shortcode]
valid: [shortcode name=”example” url=”{msc custom_url_field}”]…[/shortcode]

Note that unless you have a specific need for nesting shortcodes as attributes, you should leave this option disabled in the settings to avoid the slight (and unnecessary) performance degradation that the additional content filter involves.


Warning: Undefined array key "preview" in /home/plugins/public_html/wp-content/plugins/oxygen/component-framework/components/classes/comment-form.class.php on line 75

Leave a Reply

Your email address will not be published. Required fields are marked *


Warning: Undefined array key "preview" in /home/plugins/public_html/wp-content/plugins/oxygen/component-framework/components/classes/comment-form.class.php on line 79

Warning: Undefined array key "preview" in /home/plugins/public_html/wp-content/plugins/oxygen/component-framework/components/classes/comments-list.class.php on line 90

Warning: Undefined array key "preview" in /home/plugins/public_html/wp-content/plugins/oxygen/component-framework/components/classes/comments-list.class.php on line 102

Warning: Undefined array key "preview" in /home/plugins/public_html/wp-content/plugins/oxygen/component-framework/components/classes/comments-list.class.php on line 113

Warning: Undefined array key "action" in /home/plugins/public_html/wp-content/plugins/oxygen/component-framework/components/classes/comments-list.class.php on line 113
plugins.logo
Copyright © Codecide