[theme-reviewers] Shortcodes
Otto
otto at ottodestruct.com
Mon Feb 20 22:07:57 UTC 2012
On Mon, Feb 20, 2012 at 11:19 AM, Bruce Wampler <weavertheme at gmail.com> wrote:
> Otto wrote:
>
>> Shortcodes don't work in headers, sidebars, or anywhere but in the
>> content. That's not what shortcodes do.
>
> There is no inherent technical reason that this is true. Almost all
> shortcodes work perfectly anywhere do_shortcode is used.
Yes, and do_shortcode is only hooked to the_content in a normal case.
> There are an extremely large number of existing themes that support
> shortcodes in other places, including the standard text widget and in the
> header.
And if a theme is doing that, then it also has the capability to
adjust the processing of the shortcodes to account for the location
that the shortcode is being processed as well. You don't need to have
theme-specific shortcodes to account for the location it's in.
-Otto
More information about the theme-reviewers
mailing list