Add another preg_replace. Something like:
$text = preg_replace('/<a href=\"(.*?)\">(.*?)<\/a>/', "", $text);
Related Posts:
- get_the_excerpt() not returning anything when post has no excerpt
- Inserting a functions output after the content
- How to display post content instead of excerpt
- How do I pull excerpts from pages?
- first paragraph of the_content as meta description
- Changing where my author box is printed
- Insert Content Before div#main from the functions.php File
- Function the_content
- Issues with title-tag and document_title_parts
- Define custom Page Template without its own .php file
- Issue with get_theme_mod returning a blank value instead of the saved value
- Add action hook conditionally – only when home.php in use
- Show modified time if post is actually modified
- why doesnt is_home() work in functions.php
- Insert Ad Code in the Middle of a Post
- How can I tell if I’m on a login page? [duplicate]
- In WooCommerce I need to modify the thankyou.php page [closed]
- Why get_header() or get_footer() does not run twice if called in the same php file?
- Show Video in Excerpt
- When is wp_trim_excerpt() called?
- Change parent theme file function in child themes functions.php
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- Remove images from get_the_excerpt
- gform_after_submission content appears immediately after , not in post body [closed]
- How do I change parameters without changing the core
- Function to show only first instance of shortcode
- Custom excerpt legnths for specific pages
- Increment price for Woocommerce Minicart [closed]
- how to change link of some wordpress pages
- Searching for content post
- How to preserve edits to Name or Slug of term when using wp_update_term on save?
- How to properly add function called by action-hooked function to functions.php?
- Adding HTML to the end of every post with the Block Editor
- Add function to every post?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘greenday_head’ not found or invalid function name
- Add caption functionality to custom WordPress theme
- Passing values from a widget to a function within a plugin
- Using Schema with `the_excerpt`
- Removing permalink from post thumb in twentyeleven
- Which action does wp_update_user triggers?
- How can I get my Script to work on the Login page?
- Trigger a custom function when option are saved in admin area
- Execute a ultimate member action when user role is updated
- Add other social networks to TwentyNineteen_SVG_Icons class in child theme?
- Custom Post excerpt not working correctly
- Replace a menu with widget or a custom template file programmatically
- new_excerpt_more link not working properly
- Get User Login Data (date, time… )
- Excerpts are not displayed by a shortcode on category pages
- jQuery does not work
- Override the WordPress core function wp_referer_field
- How to return hook data when multiple parameters are present?
- Hook into a function without a hook?
- Giving the_excerpt in the place of the_content?
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- Control the srcset much more (not all sizes in it each time)
- Insert template-part inside the content
- How to add_filter html template to middle of content
- Filter yoast canonical add_action priority [closed]
- Auto log in hook is requiring a page refresh
- Possible to hook into Media Library preview File column and use a custom image?
- does wp function the_content(); accept another tag inside
- Add back in child theme what the parent theme removed with remove_action
- How to remove a specific word at the beginning of the content and add it to the end of the content
- Writing a function to detect an event
- Strip div From Excerpt
- How to change value of variable in theme file with functions.php WordPress?
- The_content and Preg_replace in loaded Iframe [closed]
- WordPress wraps span tags into p tags
- Add Adsense code between job listings – wp job manager plugin
- Adding Read More to Custom excerpts
- Replace admin header logo with an image
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- is_home() not working in functions.php file
- How to place a div inside a function that creates a div
- Conditional function for excluding first image from content, not working
- Filter for replacing the WP_query object for a given category
- the_excerpt function not showing image
- Does hook have an effect on increasing the page load?
- What is the earliest Hook a Script can use?
- Populate acf-field, depending on block name
- How Do I Unhook This Parent Theme Function?
- Strip all HTML tags from product content and resave
- Calling hooks in functions
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- How to add custom column into custom post, when field is select
- Hide disclaimer from summary excerpts
- How to echo the translated custom field?
- Shortcode to eliminate and replace with
- Check if excerpt is empty at loop-portfolio
- Can’t change excerpt length and more tag
- More link – not text
- How to add an excerpt and read more link to a page?
- Adding a filter to my posts
- Why wp_ajax hooks doesn’t work?
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- Why functions metaboxes is causing White Screen in Admin [closed]
- How I can show short content with short tag
- image_size with respect to aspect ratios
- delete_term is not working properly with add_action()