<?php
// grab description,
// note the "get_", we're not echoing the author meta, we're returning it
$user_description = get_the_author_meta('description');
// removing all HTML tags:
echo strip_tags($user_description);
// removing all tags apart from paragraphs:
echo strip_tags($user_description,'<p>');
// removing just anchors (i.e. <a> tags):
echo preg_replace(array('{<a[^>]*>}','{</a>}'),array('',''),$user_description);
// removing all links including their text (i.e. <a href="https://wordpress.stackexchange.com/questions/33568/...">...</a>):
echo preg_replace('{<a[^>]*>(.*?)</a>}','',$user_description);
?>
Reference:
Related Posts:
- Author bio Social Links
- How to automatically remove links from WordPress Biographical Info?
- How to link avatar and nickname to profile
- Link Author’s Website in Author Bio
- author_link filter not work correctly
- Can change twentytwelve_entry_meta “by-author” links?
- How to show author page link
- Open the_author_link() in a new window
- How to remove the author pages?
- Select subscriber as author of post in admin panel?
- Echo author ID in author.php
- How can HTML be allowed in Author Bio?
- How to get post author name by its ID inside a function?
- If Else Gravatar Author Picture
- Displaying custom post types in author.php
- How to set up sub-categories for author pages?
- How can an author be subscribed to the posts of another author and receive notifications of the new posts?
- Menu Link Redirect Based on Username or User ID
- Show author archive pages for authors with no posts
- List authors of site with link and gravatar
- Custom size for image uploaded to custom field in user profile?
- How to have a static category/author page?
- Making WordPress author follow button, need missing ingredient
- Get the comment author ID by the comment ID
- Remove all links to a specific website
- how to flush custom author rewrite rule
- Replace Gravatar with img URL for avatars
- Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?
- WordPress Author Page
- What is wrong with this code?
- Limit REST API output to current logged in user that is also author of the content
- Display only entire most recent post on author page?
- I only want to Display Author Link in authors bio
- Is it possible to get_terms by author?
- Why is the Links Manager visible?
- Custom Author Loop
- Showing author’s page with no posts
- Admin only menu/page
- Plugin for an author bio popup box?
- Paginate Author’s Post List on Custom Author Page (ANOTHER THEORY)
- Taxonomy linked to pages
- Conditional/Check: IF comment author is the post author
- Get last revision author, author-link and date
- Delete post by giving its link
- How can I modify all existing tags while keeping the urls themselves?
- WordPress doesn’t show all posts of a specific author
- Custom avatar image link added to the profile page
- I want to allow the use of a data-flw attribute in links in comments
- Advanced author permalinks
- Author posts url… way to get display name to be url instead of user’s ID?
- How to get all possible arguments for a wordpress function
- What does the class look like that is returned from WP_User_Query?
- Change description of my Jetpack facebook shared links [closed]
- Changes show up in view source but not live site
- Declare global var from Template File and use it in Functions.php
- Getting list of top 10 users and sort on last name
- Extract links from content
- Get 404 when try open author page
- WordPress User role → Fetch and Print(echo)
- Get Author Count By Day, Week and Month
- how to add custom info on author page? plugin, child theme?
- Detect and make links nofollow in author description
- Conditional/Check: IF author has no First Name THEN
- Authors divided alphabetically
- redirect “about author” code to about page
- Custom Fields Question
- Inline-Table under TwentyTwelve not working
- Display all authors in a theme template
- post author if statement
- How to show list authors with at least five posts published
- Display posts differently depending on which author wrote it
- How to have certain WordPress settings set by default on a per author basis
- Filter Author Link for Numerous Authors for each to go to unique page
- Open login logo URL in new tab
- How to share the author’s archive?
- can’t see information on author page that don’t have posts
- Some custom post types did not return an object
- How to create many author’s page?
- How Can I Concatenate A String With One Of My Custom Field Value Before Saving The Post?
- get_author_posts_url() Not working
- remove or hide Link Relationship (XFN) form Menus tab
- Structure of post types for TV Shows and episodes
- Adding images to anchors in the list created and fetched with wp_nav_menu
- Creating a button from data from Author meta
- How to get the Author type Label Language
- How to list all names and descriptions of a custom taxonomy
- Sticky post of current viewing author?
- How do you add Author and date Published on Category Pages?
- How to get latest page (not post) of User and display the content
- How to change the post author when the post is published?
- Remove post author using child theme
- featured images – custom links
- if else for custom $curauth-> field
- Author.php display profile for all types of users
- How do I increase the 255 character limit on the ‘description’ field for link library links?
- Displaying posts limit: can’t get pagination to display [duplicate]
- Exclude Author by ID
- Removing “HTTP://” From the_author_meta?
- Permission to change post Author
- why is there an author.php