[wp-hackers] Show only Shortcodes in Sidebar

scribu scribu at gmail.com
Mon Oct 26 14:51:04 UTC 2009

On Mon, Oct 26, 2009 at 2:43 PM, Chris Jean <gaarai at gaarai.com> wrote:

> How to filter the_content so that only shortcodes display in that sidebar
> and rest of content gets filtered out?

Depending on the shortcode, it might be easier to call the function that
it's generating it. For example, if your shortcode is like this:

add_shortcode('myshortcode', 'myshortcode_callback');

Instead of writing:


you can write



More information about the wp-hackers mailing list