[wp-hackers] Show only Shortcodes in Sidebar

Andy Skelton skeltoac at gmail.com
Mon Oct 26 12:16:07 UTC 2009


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

$content = strip_shortcodes($post->post_content);

Andy


More information about the wp-hackers mailing list