wp_get_attachment_image_src()
returns an array. You want wp_get_attachment_image_url()
.
$image = wp_get_attachment_image_url($user_meta, 'thumbnail');
Related Posts:
- How to display random users with avatars
- Use local image for default avatar
- How to set the default avatar of buddypress avatar [closed]
- How do I pull avatar from post using BuddyPress? [closed]
- Missing feature image link function
- How to change the markup WordPress inserts for post images
- When tax_query used, results disappear (0 =1 produced)
- Targeting specific menu with wp_nav_menu_items
- wp_get_attachment_image returns different image size
- Limit the length of the Author Profile Biographical Text
- Convert hyphen to underscore in permalinks
- disable comments if array exists
- wp_mail not running inside Cron
- Remove images from get_the_excerpt
- Remove product description from product archive page
- Logging in redirects to correct page but shows logged out content until forced refresh
- What is the criteria for pluggable functions?
- How can I stop a function from encoding an entity?
- Theme-Config tab in admin Pannel?
- Display more recent and less recent posts in same category
- Replace comment avatars and links at the same time
- Increment price for Woocommerce Minicart [closed]
- Change woocommerce products weight varation based its product category or tags? [closed]
- Function to “Press Update Button” on all posts
- Change WP attachment name to postid during upload only for post type
- Completely disable RSS feeds on WP 5.5.2 and show a 404 page instead of die();
- Check if row exists before inserting
- Missing argument 2 for a custom function widgets_init
- How to target only the front page (not subsequent paginated pages) in theme/plugin?
- Removing the main link to Jetpack from the menu
- Defining a global array in functions.php?
- Get the 5 lastest Featured Posts from a category
- Set quantity of woocommerce product on page visit [closed]
- get_post_type() in in_array doesn’t work for some reason
- Is it possible to change any of the HTML/URL returned from the_category()
- How to remove set_post_thumbnail_size() in child themes?
- Activate small php condition at footer over page template
- How to insert custom widget in custom sidebar in theme activation?
- Fatal error: Cannot redeclare when switching themes
- How to load jQuery in the footer – nothing works for me
- HTTP_HOST changing in functions.php
- 404 redirect to previous category
- Specify number of posts for sub-category page
- how to en-queue jQuery to load before the tag
- comments_popup_link without echo?
- Can’t filter wp_get_attachment_link
- Impossible to call wordpress function inside an include?
- How to customize the_archive_title()? Cannot figure out how to change the value it produces [duplicate]
- Remove a category from a post when saving a new post
- Want to dequeue all the CSS and JS from /wp-content/uploads/xyz-folder
- Scripts not loading when using the wp_enqueue_scripts action
- is there a way to remove featured image from blog page and single page
- Include the post type before the title of search results
- retrieves menu and converts it to a readable array
- Possible to merge these two functions?
- Strip div From Excerpt
- How to properly set custom logo size?
- dynamic site link for future migration in echo do_shortcode()
- Hide tab Buddypress profile for visitors, not logged in users
- Image Crop Not Working
- WordPress can’t get jquery/unslider to work
- Show Featured Image in else statement
- how get number of twitter followers in wordpress
- Function to check if custom page is used by page?
- template_redirect action only firing if logged in
- Simplest Way to Build Custom Archives Page?
- Filter for replacing the WP_query object for a given category
- Custom user role still showing up after deletion, ideas?
- Unable to use get_page_by_title() more than once per page?
- How to Display WooCommerce Product Price in WooCommerce Archive
- Woocommerce Variable Product Dropdown for Custom Shop Template
- Bizarre Child Menu Issue on WP Site
- get variables data from functions.php to template wordpress (without global variables)
- large image size of 1440×1440 not pulling 2x of 2880×2880 image
- how to increase connection time
- Shortcode to insert default text and change one word throughout it?
- Its my first time trying to create a website , I got an error Please help
- Drop down list code for sidebar
- Shortcode Initialization in a Custom Theme
- Hide disclaimer from summary excerpts
- Load scripts into an AJAX div
- restrict uploaded image size and fixed image display size
- Code executes outside of Loop while same code gives ‘Uninitialized string offset’ notice inside a while loop
- Function not receiving string from shortcode
- Restricted images only for logged user. (hidden url)
- Only seems to be displaying one child when there are supposed to be multiple
- WordPress permanently logging users out
- Open image size links in a page instead of direct image link
- Meta Box value not been pulled in
- Override parent theme function that is not hooked or in the functions.php file
- Syling Custom Fields echo’s from from functions.php
- Function to get thumbnail img source
- More link – not text
- WP Custom Comment Callback Not Responding
- Do something when user creates post (that’s pending)
- Shortcodes not outputting in correct divs
- Add product to cart from functions.php
- Help finishing script to export WP user data when form submitted
- How I can show short content with short tag
- How to overwrite image if it already exists – WordPress, Gravity form