apply_filters is a function used all throughout WP in many different contexts, your issue here is the specific filter you are applying, which is the_content.
the_content filter by default runs on the main post content field, and does all sorts of transformations via a number of hooked functions: wptexturize, convert_smilies, wpautop, do_shortcode, shortcode_unautop, prepend_attachment, wp_make_content_images_responsive.
In your case, the markup is an embed automatically generated by WordPress when an embeddable URL is encountered within the content.
It doesn’t make sense to use the_content filter in the case of your URL field, you should just use esc_url instead:
echo '<a href="' . esc_url( $ecpt_website ) . '" target="_blank">';
Related Posts:
- single-{$post_type}-{slug}.php for custom post types
- Row actions for custom post types?
- Saving Taxonomy Terms
- Filter by custom field in custom post type on admin page
- Do_Shortcode not working for Embed
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Adding a drag and drop re-ordering from a custom post type default list [closed]
- How to correctly get post type in a the_title filter
- How to add a CSS class to every image in a Custom Post Type
- Best way to filter featured image text for a custom post type?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- WP Admin default view mode for Custom Post Type
- post_type_link filter causes 404 on the CPT page it’s used on
- Make the ‘all’ filter default instead of ‘mine’ in a custom post type
- Exclude custom function content from certain pages
- Filter get_categories() for taxonomy term in WordPress
- Debug output during filter execution doesn’t work
- Ajax filter with custom taxonomies
- Filter posts with ajax form and checkboxes
- How to remove CPT comment feed from head?
- Unable to filter on field on edit.php page
- Help with issues on “Adding a Taxonomy Filter to Admin List for a Custom Post Type?”
- Adding posts of custom type into the main feed
- Used with meta_query in query_posts works slowly
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Archive filter disappears on no results?
- Should I use custom post types for a front page video feature (vimeo)?
- Remove “Get Shortlink” button in admin of custom post type
- Add $more_link_text parameter to the_excerpt()
- How to get Custom Post ID by adding filter to child theme’s function
- Custom Taxonomy breaking pages permalinks
- How do I set the link in the Custom Post Type admin menu?
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- How to filter out post type meta?
- How to check if “is single” page
- Make a function to run only for CPTs
- Modifying date filter on admin page for custom post type to link to custom field
- Pre_get_posts filter overwrites all search functionality
- Filter categories of posts with checkboxes
- WooCommerce product search titles only
- How to detect filter in URL in Category page?
- Custom query to filter posts that have current post as a taxonomy [closed]
- Setting proper query for multiple custom admin filters
- Append date to custom post type url slug
- Genesis filterable portfolio isotope [closed]
- How can I see a list of my Custom Post Types of the last term I was in?
- filter custom post type by meta key in dashboard
- Categories of custom taxonomy don’t show any posts
- How to add a post slug to a url?
- WordPress sort search results by custom order
- How to filter wp_list_categories output with some custom post type meta query?
- creat filter with wp_query
- How can I made custom taxonomies relationship?
- WooCommerce sort products by the actual product width(not the shipping width)
- search suggest – filter post type
- Filtering posts list table
- Categories filtering in new post
- How does the filter post_updated_messages work?
- Create new custom post and post category of same name
- How do I add custom HTML to the content of an archive page’s posts?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- REST filters only firing when I have a param set
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- How to filter url on post submission?
- Filtering the_content, but still need to display the unfiltered content inside filter
- Modify a plugin function output from another plugin
- Custom Taxonomy Filter Issues
- Filter search posts by post meta?
- Modifying search results based on post_type
- Remove filter and view options from custom post type edit screen
- custom filtering admin columns
- Ajax Post Filter | Split Taxonomy Into minPrice & maxPrice
- Query filter by value in meta_value array
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Is there any filter to add a custom attribute to the tag in admin panel?
- Store a value in global scope after init hook is fired
- Dynamic page for nav items used as filters
- Filter posts by their related field’s custom field
- Post Click Redirect to Custom URL instead of Single Post Page
- Output all terms slugs for a loop filter
- Help Adding filter to Add Media button for custom post type
- Apply pre_get_posts to specific custom post type in the admin area
- how it’s possible to show from a post of a custom post type the taxonomy/terms?
- Enable shortcodes on custom post type
- Filter between Custom Posts depending on meta_value
- Creating adminable dynamic filtering on custom post type
- Dropdown switching subcategories portfolio
- Filter wp_dropdown_categories Per Post Type
- Sorting on Taxonomy in archive page
- add current-menu-item to multiple custom post types
- Filter custom post type by tags
- Custom Search Template for Custom Post Types
- Rewrite a filter as shortcode (or something like that) to use anywhere in CPT
- add_filter > posts_where works partially
- Simple Share Buttons Add Plugin and Custom Post Type
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- When Attempting to Filter Plugin Generated Content Using Filter post_type_link, Permalinks Are Not Modified
- Change CPT Edit Target Link for Admin List
- Add Custom Taxonomy Terms as CSS Classes for CPT Posts in an Elementor Loop Item Template
- Add post id to url instead of WordPress default -2 suffix