how to add youtube video to excerpt?

by Amal   Last Updated January 20, 2018 11:08 AM

If there is a video I want to include, how can I include it to be shown right in the excerpt section?

below from my functions.php:

function new_excerpt_more($more) { global $post; return '... ID) . '"> continue reading »'; }

add_filter('excerpt_more', 'new_excerpt_more');

Tags : excerpt

Related Questions

Certain number of posts with certain excerpt length

Updated April 30, 2016 08:03 AM

Custom wp_trim_words() function not trimming right

Updated March 21, 2016 08:03 AM

How to get excerpt of the recent posts

Updated December 28, 2016 08:03 AM