[wp-hackers] Show only Shortcodes in Sidebar

Navjot Singh navjotjsingh at gmail.com
Mon Oct 26 12:19:46 UTC 2009


This does the reverse. It removes the shortcodes. I want to display the
shortcodes only and anything except shortcodes should be filtered out.

Sent from Delhi, DL, India

On Mon, Oct 26, 2009 at 5:46 PM, Andy Skelton <skeltoac at gmail.com> wrote:

> > 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list