To show author avatar per post inside loop you need to modify a little:
$current_post_author_id = get_the_author_meta( 'ID' );
<?php if (!empty(get_user_meta($current_post_author_id, 'user_avatar', true))): ?>
<img src="https://wordpress.stackexchange.com/questions/317789/<?php echo get_user_meta($current_post_author_id,"user_avatar', true); ?>" alt="some text">
Try, if it works for you.
Related Posts:
- Should I use RIPS tool to test my themes and plugins?
- Workflow and best practice for documentation [closed]
- How do I combine a theme with a plugin
- How to write “alt” tag in image for wordpress code?
- Don’t load the theme for a page FROM a plugin EDITED
- Extending a theme: build new features as plugin or core modules?
- How do you create a re-useable HTML fragment in wordpress
- How to override any plugin file in the child theme
- when i activate my WordPress plugin cannot see customizer options or preview
- how to add custom css at top above all css file for specific url
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- Breadcrumb is not generating the correct post page url
- Site is setup statically – how to make it content managable?
- How to escape html code?
- How to make content as required in custom post type?
- How to create new title and its description inside a section in WP Customizer?
- Where the Nickname is being used in WordPress
- What is the correct way for a theme to support plugin UIs?
- How to call “page specific menu items” in template [closed]
- Update Multiple Post Meta for the Same Post In One call?
- Function to activate WordPress theme inside a plugin
- Which functions in theme or plugin load first
- How do I make my wordpress page more friendly for mobile viewers?
- How to make my plugin theme-independent?
- How to load a new template page according to a particular URL?
- Check javascript file Proper way in functions.php
- How to Build a Movie Library in WordPress 3.x
- Autoload via composer in plugin interference
- Is there a quick way to inject i18n domain into theme/plugin files?
- Display future posts?
- Override the core function locate_template
- Having separate plugins and themes folder for multi-site setup
- How can I get full attachment url from wp_get_attachment_metadata?
- Translating plugin inside the theme [closed]
- unzip a folder on specific location and delete the zip file
- gallery option is not available in media upload box in costum theme option page
- Why are some of my thumbnails not being generated?
- Why is the Settings API is not saving my array of options
- Current user in plugin returns NULL
- Include Max mega menu Plugin into theme
- How to integrate plugin in WordPress theme
- add_action in functions.php, do_action in plugin?
- wordpress theme backend admin only
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- How to use get_theme_mod in gutenberg editor wordpress?
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- Reusable functions and tools (Framework)
- Different UI in WordPress
- The problem with WordPress Importer
- New User Form – Custom Menu Page
- How to read individual user’s directory and display content to that specific user?
- Display post lists in 2nd paragraph
- Plugin-generated pages use Not Found or Pages Archive templates?
- Is there any kind of theme on WordPress to sell my own movies?
- Classified ad website : which solutions to use? [closed]
- What are the specifics of WordPress development I need to know? [closed]
- Homemade plugin while using Themify Ultra
- How can I change the meta_key for a particular piece of information?
- How to create a code editor for my plugin .?
- Finding the URL to be used to check if plugin is installed with a theme
- wp_footer hook only working on homepage not in other pages
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- How to use get_template part in the plugin?
- Redirect to another page using contact form 7? [closed]
- how to force tag page layout to use same as search layout?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Create custom pages with a plugin
- How to get all posts belongs to a user between a certain date
- How can I see $post object in frontend from functions.php?
- Link custom post type to page
- How to prevent redoing get_posts queries and make results available to other scripts?
- Showing different js file for different theme in wordpress customizer api
- WordPress panel is not loading after plugin activated with error: HTTP ERROR 500
- When the user entered an unauthorized url redirect to login page
- Remove action added in plugin class from theme
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Help Code Review – I need to write on .htaccess file from theme’s function.php
- Where do the section input fields values are stored in database
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- How can I save cookies to members
- Confusing problem with displaying message recipient metadata
- Input gets deleted/overwritten after changing to different Admin Menu
- How to show post attachment image
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- What is the Object for WP_Error Class?
- Integrating WordPress Content into a jQuery Slider
- Editing a theme
- manage_{taxonomy}_custom_column not working
- how to make wordpress remember my choice
- How to Enfroce Domain Licensing Limits? [closed]
- Meta box not displaying on the plugin page
- add_meta_box showing blank screen in my page
- How to create an Info Box on WordPress [closed]
- What are Seeds? [closed]
- Frontend Enqueued Files in the Backend
- I have issue to retrive post thumbnail with rest api
- Custom Plugin not Displaying in the Website Production environment (Divi)
- Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1
- How can I keep a WordPress dropdown menu open when navigating to a child page?