Add youtube videos (or other embeds) in Wordpress category description

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 835178
    • Gender:Male
  • point d’amour
Add youtube videos (or other embeds) in Wordpress category description

In your theme's functions.php add this filter at the end of the file:

Code: [Select]
add_filter( 'term_description', array( $GLOBALS['wp_embed'], 'autoembed' ) );


 

Search Tools