<div dir="ltr">The determining factor is: where are the shortcodes intended to be used.<div><br></div><div>If the shortcodes are intended to be used in the post content, then they are not allowed.</div><div><br></div><div>
If the shortcodes are intended to be used in other places in the template (footer, sidebar, etc.) then they are acceptable.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 16, 2013 at 2:51 PM, Bruce Wampler <span dir="ltr">&lt;<a href="mailto:weavertheme@gmail.com" target="_blank">weavertheme@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m working on a new theme, and would like to clear up what might or might not be acceptable for shortocodes.<br><br>
I know that shortcode are really discouraged because at the least they will leave undefined [theme_shortcode] text if the theme is switched.<br>
<br>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 &#39;theme&#39; as a name):<br><br>[theme_info] - shows diagnostic information about the theme - this would seem ok as it serves a possibly useful diagnostic function very theme specific.<br>

<br>[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.<br>

<br>[theme_show_posts options=&#39;xxx&#39;] - 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&#39;t match the rest of the theme. (Same logic could apply to RSS feeds)<br>

<br>[theme_menu] - display menus in alternate locations in format that matches standard theme menu.<br><br>-----<br>I&#39;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.<br>

<br>So I&#39;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.<span class="HOEnZb"><font color="#888888"><br><br>Bruce Wampler<br><br><br><br>
<br>
</font></span><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>