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:
- WordPress sharding: which multi-DB plugin to use?
- How can I prevent a plugin from updating unless it’s minimum PHP version is met?
- wp_enqueue_scripts not working in custom theme
- What characters are allowed as a shortcode tag and how should they be sanitized?
- Is there a plugin to show the code tag button on the visual editor?
- How do I check what plugins are enabled via the database?
- Additional, optional fee on Woocommerce Checkout [closed]
- Why does including a file in theme’s functions.php not work?
- OEmbed from Pinterest
- Posts wont expire
- disable active plugins for specific theme
- Add Top-Level Menu that opens URL
- Override Theme CSS with CSS from a plugin
- How to limit 1 image per post on homepage only?
- Something is generating spam pages on my site
- Flickr plugin that will display photos from multiple group pools? [closed]
- Popup Cookie WordPress select language and section (Elementor)
- Remove filter from WordPress Plugin
- Gutenberg List Extension Block
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Regenerate images with automatic ALT and TITLE attributes
- Making menu link open in new tab?
- Single Must Use Plugins Directory for local development
- ReOrder Post Within Categories plugin with featured image
- How to initialize something in unit test before the init hook being called?
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- add_filter comment_edit_redirect not working
- Advice for a voting / multiple rating plugin for post types other than GD Star Rating [closed]
- How to write a plugin to add users to a mail list
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Force Plugin Updates: “Update Failed: Plugin update failed.” after update one plugin
- Create mobile navigation header with settings integration
- Two text domains in one plugin
- Plugin or method to delete uploads not in media library?
- Combine scripts from all extensions of the plugin when an extension is activated
- Add woocommerce variation images in gallery?
- Add a CSS class based on categroy id to archive pages
- Access WordPress data from external PHP application.
- Checkbox conflict in my custom plugin admin page
- Can you use another Profile Builder shortcodes through advanced custom fields
- Comment section not showing correctly
- add input in custom javascript from WordPress pages/posts
- WP Plugins – Use includes to display page content
- Can a Plugin Override New User Default Role Type
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Recent posts per category loop?
- WordPress as a data-store?
- How do I use add_action on custom widget?
- plugin active error
- Change letters for day name
- Keeping and updating ACF and ACF Pro at the same time
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- Alternate email sending service – eg: AWS SES [closed]
- How to deal with Slow HTTP POST (slowloris) vulnerability
- What is the purpose of WP_CONTENT_URL?
- Control page content visibility based on URL parameter
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- Elementor Custom Control: How to get input value?
- download button for audio file in post [closed]
- Print posts category or tag as a formatted journal
- Creating a search form and displaying results
- how to design change in woocommerce cart page and all other page also by theme? [closed]
- problem with register_activation_hook in plugin
- should i use GLOB_ONLYDIR to hook add-ons for wordpress plugin
- How to downgrade plugin?
- Build a must-use plugin that tracks when other plugins are activated or deactivated
- Allow webp use on website but disallow webp as featured image during post creation
- Using sessions or an alternative in a plugin
- redirect to homepage once action is completed
- Rewrite/Change custom taxonomy slug
- Can I create a separate admin section for my plugin?
- How to remove default action from a plugin?
- taxonomy_template filter not working on pagination [duplicate]
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- WordPress Contact 7 Form – Remove WordPress from the From Sections
- How connect my plugin translation to my page
- Custom author page for custom role
- EventON – Dequeue Styles
- Pagination not working with pagenavi
- multiple string replace of post’s content for large data
- Building a dynamic web app for questionnaire
- Using WordPress to create a simple web app (SaaS) [closed]
- wp_signon returns user, in popup window, but the user is not logged in
- Searched & tried a lot: Is it Possible to Eliminate Render Blocking Manually
- Creating plugin for changing slug
- resizes images on the fly
- WordPress plugin – multiple php files
- Upacking the package… stalls, but installs plugin
- change output location of plugin function using a custom hook
- Internationalization of Blog Posts
- Issues with Post 2 Post Plugin
- WordPress Options-Theme STD (default) value does not work
- How to add a plugin in WordPress theme directory?
- wp insert post not working
- WordPress shortcode plugin not working
- how to show selected options drop down menu values in attributes field in after saving post.php
- Buffered output in chunks and shortcode – how do I achieve that?
- Transfer wordpress comments form on another post [closed]
- Achieve the following layout