[theme-reviewers] Are there any shortcodes appropriate to include with a theme?

Mario Peshev mario at peshev.net
Sat Mar 16 18:57:05 UTC 2013

Shortcodes are fine only if used outside of the content area (where posts
live). These sound as shortcodes that could be used in footer or other area
which might be acceptable.

sent from Android
On 16 Mar 2013 20:52, "Bruce Wampler" <weavertheme at gmail.com> wrote:

> I'm working on a new theme, and would like to clear up what might or might
> not be acceptable for shortocodes.
> I know that shortcode are really discouraged because at the least they
> will leave undefined [theme_shortcode] text if the theme is switched.
> But I also got the impression there is room for some theme specific
> shortcodes. Where is the line? Some specific examples I am struggling with
> (just using generic 'theme' as a name):
> [theme_info] - shows diagnostic information about the theme - this would
> seem ok as it serves a possibly useful diagnostic function very theme
> specific.
> [theme_show/hide_if_mobile] - Show or hide content depending on
> desktop/mobile view. Many users want this capability, and it seems really
> related to how the theme works on mobile views. It could be done with
> @media and settings for transition points, I suppose, but it really seems
> the theme is in control of those decisions.
> [theme_show_posts options='xxx'] - Show some posts on a page or sidebar.
> This capability is also very popular with users. To function correctly, it
> really need to know how a theme formats posts, so separating it from the
> theme would lead to showing content that doesn't match the rest of the
> theme. (Same logic could apply to RSS feeds)
> [theme_menu] - display menus in alternate locations in format that matches
> standard theme menu.
> -----
> I'm especially having difficulties imagining how to write a plugin version
> of a [theme_show_posts] shortcode that could work across themes and provide
> any kind styling consistent with the theme.
> So I'm curious if any of the higher ups here have an opinion on what kind
> of shortcode would be acceptable to include with new themes.
> Bruce Wampler
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130316/a7d588db/attachment.htm>

More information about the theme-reviewers mailing list