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

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 836585
    • 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' ) );
« Last Edit: 28 Apr, 2022, 20:26:23 by spiros »


 

Search Tools