WordPress.org

Support

Support » How-To and Troubleshooting » How to filter the_content to show only shortcodes?

How to filter the_content to show only shortcodes?

  • I have a blog where in sidebar, I need to fetch posts belonging to video category. Now Videos are embedded using shortcodes. But since the_content is used to show the posts in sidebar, any text and even image in a video post gets shown in sidebar which makes it messy.

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to filter the_content to show only shortcodes?’ is closed to new replies.
Skip to toolbar