Try this one :
<?php
$authordesc = get_the_author_meta( 'description' );
if ( ! empty ( $authordesc ) ){ ?>
<div class="blog-article-author">
//author info here...
</div>
<?php } ?>
Related Posts:
- How to Display Post View Count
- Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
- Exclude category from
- Change all author links in Blog roll
- The_excerpt() doesn’t parse – how to change that?
- How to only publish posts with image in it
- Add custom text automatically on each post
- Optimize CPT-function with a loop
- Get post id outside loop : Notice: Trying to get property of non-object
- Show post excerpt
- Getting rid of the blog page entirely
- What function does the loop of displaying posts?
- WordPress current post functions inside loop doesn’t work anymore, are they incompatible with php 8.0?
- Listing Specific Categories from Current Post with Depth
- How to exclude visited posts from loop
- Use two different post_per_page limits with infinite scroll
- wp_query random post
- How to make the first post in the loop be styled like a “new / featured” post?
- “Right Way” to make custom Loop respect reading settings inside admin panel?
- How to setup a query to output posts by groups of five?
- Only display sticky post or latest post in custom loop
- Order posts alphabetically: how to set order=asc in mysql query?
- How to order posts in an arbitrary order?
- How do I stop the loop from repeating in my category template?
- get_the_category listing in hierarchial order
- How many posts does the loop return?
- Display Posts on Custom Page
- How to make a sum of all posts displayed in a loop
- Possible to alternate between two loops
- Exclude current custom post on single post
- Wrong post title displayed from loop
- Get Value of Post before
- why does wordpress ignore the post args?
- Multiple Loops Breaking Pages
- add to end of post in the loop with plugin
- First x post with another template then the others
- Loop doesn’t show title of second post and posts thereafter
- Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
- disable Tab post on nav-menus page (Admin)
- Showing categories and subcategories with posts
- Second get_permalink inside loop points to wrong URL
- Get the amount of posts on a current page
- Loop parent terms {display posts} AND loop child terms {display posts}
- How to add a class to each individual post?
- Adding bootstrap classes to video shortcodes
- add bootstrap post slider with tabs
- Every second post different class in blog view
- How to add add more properties to WP_Post object in search results loop
- Format latest/newest post differently
- is_page Funtion for Posts ?
- Custom taxonomy archive page problem
- Post type no single page
- Loop don’t work within single.php page
- Use Click Image to Play Youtube Video in a WordPress Loop
- Get post meta retrieving wrong value
- Adding a user’s ID behind the tag ref link address
- older blog posts not showing in new theme
- How to get posts published on the latest date?
- Trying to edit archive.php to only show post extract, with featured image
- Add Blog to WP homepage Manually
- How can I remove the first two words and shorten get_the_title()
- How to show all posts by author on buddypress profile with navigation
- Page and post loop same template
- WordPress Query Posts From Category Post on Static Page
- Isn’t the way posts are displayed very unefficient?
- ACF to select posts not displaying on blog page
- Getting blog pagination to work on page set as front page
- Extracting relevant tags associated with that particular single post only
- How to check in functions.php if there is data in a WP_Query?
- Make loop inside slider divisible [closed]
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- Why this function doesn’t works without the_post?
- restrict incrementation of post vies count when refreshing the page
- Display current post position in Elementor Posts widget
- Defined function isn’t showed on page
- WordPress 302 Redirect to Random Product/Post/Page
- Loop through posts? Want to remove extra newlines in actual post HTML/content on backend
- WP_Query: Show 10 posts in date order, first three random
- Getting Whitescreen when publishing a post [closed]
- Using system date format
- How include css class based on post ( in loop ) slug?
- Get post by tag
- WordPress Loop: How to display recent posts in multiple divs
- Get post format
- Querying another post category to match current post and display in loop
- Add code to a specific post’s content
- Related Posts function not working
- How to display posts on custom page without declaring a posts page in reading settings?
- the_content() Not Grabbing All Content
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Show posts by quarter
- separate the post of a category by subcategory
- How to display post list in a table layout (multiple queries in single loop)
- Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
- Cannot implement byline into posts container in single.php
- Not all posts showing in query
- how to handle the loop using filling bootstrap grid structure?
- Optimizing the blog loop
- Related Posts: Changing Function For Posts Per Page
- How to check if there are posts with the same tag