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?
- 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]
- 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?
- 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?
- 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 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
- 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]
- Homemade plugin while using Themify Ultra
- How can I change the meta_key for a particular piece of information?
- 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?
- how to force tag page layout to use same as search layout?
- Use different single.php file based on condition
- how can I query all wordpress users of a blog
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Shortcode Attributes to Return different $_POST
- How to use the CSS of the WordPress core in the development of my administration page?
- I receive taxonomy id
- Include Minit plugin in theme [closed]
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- What’s the right way to implement functions in footer.php
- Remember the Meta Value With Radio Buttons
- display unique post per category
- WordPress plugin with its own “site”/theme
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Janrain/Simple Modal under Redirected Domain
- Disable Author Archive just for certain roles in bulk
- Seperate plugin and theme files
- Scrape key check failed. Please try again
- Elementor Sidebar not loading when PRO elements plugin is active
- submit two file input fields in the same form
- Rename a folder via HTML POST request
- How to get a post views count using ‘WordPress popular posts’ plugin
- How to prevent redoing get_posts queries and make results available to other scripts?
- 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]
- 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
- How can I make a website with dynamic features with wordpress?
- How to generate a responsive output from plugin?
- How to work email subscribe in WordPress?
- How to create post comparison in wordpress
- How to add image for custom taxonomy
- Javascript as Jquery Function Call?
- Integrating WordPress Content into a jQuery Slider
- Editing a theme
- manage_{taxonomy}_custom_column not working
- How to Enfroce Domain Licensing Limits? [closed]
- add_meta_box showing blank screen in my page
- How to create an Info Box on WordPress [closed]
- What are Seeds? [closed]