The excerpt is not meant for content that is why it is called “the excerpt”.
Instead use a plugin like “Vipers Video Quicktags” or “Youtube shortcode” and add it to a template file and you’ll probably want to get the url via a post meta field.
for example ( using Youtube shortcode plugin and meta field called “video”):
$video = get_post_meta($post->ID, 'video', true);
echo do_shortcode('[youtube_sc url="$video"]');
Related Posts:
- How to create custom message on plugin update
- wp_dequeue_style not working
- Stop a plugin in the activation process when a certain WP version is not met then show error message in admin_notices action hook
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to Add an Index to Plugin Database table
- How to add “Stick this post to the front page” to front end?
- Creating two database tables via plugin
- Is it a good idea to edit an already existing plugin to add more functionality?
- How to allow HTML tags into WP Bakery (formerly Visual Composer) `textfield` parameter
- How to make media upload private? [duplicate]
- How to trace the cause of these PHP notices and warnings for class-wp-query.php?
- What are good plugins for beginners? [closed]
- Modify featured image URL at runtime
- Some plugins adding full server path after url (with custom wp-content folder)
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- Is it possible to block subscriber users to changing its password?
- debugging register_activation_hook()
- How to unregister a widget from a child theme
- wordpress plugin that show my reputation (points) in any stackexchange project in my wordpress blogs
- Why load_textdomain work but not load_plugin_textdomain?
- Get uploaded image url
- Passing select control value to block
- How to add custom JS to tinymce in wordpress
- Collaborative post submission [closed]
- What are ideal hooks to call register_sidebars?
- WordPress is giving errors after activating WP_DEBUG
- plugins_url function mixes system path and URL
- The called constructor method for WP_Widget in GFWidget is deprecated since version 4.3.0! Use
- Wondering what these multi-colored extra pages are?
- Facebook Like needs confirmation?
- How does automatic redirection for the redirection plugin work?
- Avoid class name collision when using third party libraries in plugins?
- Plugin custom post type – Internal server Error
- Remove ALL css for a specific plugin page
- Is WP feature image function cropping images? WP Content Slideshow
- Linux Permissions and Ownership for WordPress
- Plugin development: Buggy plugin preview
- Procedural Question on Plugin Installation
- Render custom php template into string
- Using window.onload with Ubermenu
- Ordering taxonomies by rank
- Plugin Options not being output
- My homemade plugin is trying to update to someone else’s plugin
- Is there a way to embed a Google Docs form in a page without using plugins?
- Advanced Custom Fields – Disable Users to Edit Custom Fields
- How to have sample page for each new register users in a membership website
- REST route from a plugin not working if WordPress is installed in a subdirectory
- Plugin development: what to prefix?
- Submit Form data to another page via Ajax (WordPress Way)
- How to edit a published post?
- simple-job-board Plugin throws an error on live server [closed]
- How to return the values from a row where a value occurs for the first time among the rows available?
- ‘Notice: Undefined index’ error on plugins page [closed]
- WordPress plugin: Getting posts where checkbox selected
- Smarter navigation plugin and custom taxonomies
- How to embed a new string in url?
- Adding a pagenavi to function for displaying bookmarks
- google +1 like polling system
- A good heatmapping plugin for WordPress? (No 3rd-party services please) [closed]
- TN3 Plugin Not Working Under IIS / WebMatrix
- Including content from legacy app: via plugin or custom content?
- How to install a translation for a WP plugin?
- Plugin for TinyMCE to create reference to other posts
- What is the most efficient way of adding additional functionaliy for admin only
- XML Sitemap Generator and 404 problem
- How do I work with the SlideDeck plug-in?
- Add hook after content without formatting
- Sold out Label for variable products which are partially sold out
- User loggedin as Subscriber form not sending
- admin_post hook not firing function inside class
- Merging new theme and plugins from development site to production
- WordPress sitemap “Extra content at the end of the document”
- Unload a woff file from WordPress
- Above the fold plugin error “The Proxy Cache directory contains n cache entries.”
- User / membership Plugin [closed]
- Can we validate data from jquery
- Fetching WP.me shortlinks for posts using WP Rest API
- How to display widget in front end?
- show-hide based on select option jquery wordpress
- Where to store media uploaded by the plugin?
- error_log() not working in add_filter auto update callback
- Follow author on muti-user WordPress site
- Add a checkbox in plugin options page and make it actually work
- Integrating a hosted app with wordpress using the API
- Calling a function from a link in WordPress
- WP_Query Date Filtering Inclusive Being Ignored
- Live coding in WordPress
- What is the recommended way to be notified of security updates to my plugins? [closed]
- How to provide access to specific plugin to all the user roles except subscriber in wordpress
- WordPress Cumulus
- WordPress create permalink structure for custom post type with userid
- how to remove a rel=”nofollow” using call to action plugin
- Template selector for woocommerce product
- How to access values from your own settings page in javascript?
- How can I view forums from different sites in a single panel? [duplicate]
- Manually update notification of plugins needing updating
- ImageMagick on wordpress 6.5.5 for Linux Alma 8 success but which no magick
- What is the easiest way to create a custom field archive?
- Error 503 Service Unavailable and wp-json/tdw/save_css
- How to make a page setting translatable in theme?