I figured it out…
$meta_value = get_user_meta( $atts['owner'], $meta_key, true );
$store_numbers = array();
foreach ($meta_value as $store_number) {
$store_numbers[] = 'shop'.$store_number;
}
$usernames = $store_numbers;
Related Posts:
- How to get user ID’s from multiple usernames?
- Override orderby to create list of users by custom meta_value
- Display all existing members
- Allowing an email as the username?
- Show newly added posts since last user login time /date
- Custom search form to display users only
- How do I make a variable available inside partials?
- Enabling users to control custom loop’s query
- Get author Meta for particular user inside the loop
- Can’t access PHP array inside script localization from javascript
- using update_user_meta to rank users
- Query users and count totals based on meta values
- Loop random posts and display odd and even based on two alternating meta values?
- Exclude Posts Using Meta Query and User Meta
- Show a list of user posts in the user admin page
- Get Sticky User in user loop based on user role
- Username has been exposed
- Combine Query and Select Database to create directory loop
- How can I list users by date in an array in meta_value?
- Get date of last update outside of loop
- Change user’s display name programmatically
- How do I get the attributes of a short code from a post?
- WordPress category & taxonomy loop with pagination
- Changing behavior of the loop twice in one page
- wp_insert_posts Fatal error: Maximum function nesting level of ‘100’ reached, aborting!
- Post Loop not Returning Permalink
- Displaying child page content of a certain parent
- Pagination adding extra posts only on page 2
- If Loop has odd number of posts on last page Custom style for last post in it
- Update user_login to change username
- How can I use get_permalink() outside the loop?
- Two loops by pre_get_post on same page
- How to check for specific content in comments in the loop
- Problem the_permalink
- How can i create an array user meta?
- Sort Posts By Category?
- Can’t access login screen, wp-login.php 404’s
- Distinguish profile user and admin user IDs / get ID of user being edited
- Get all user meta by meta key instead of ID
- Force a user’s posts category
- Query posts if meta key starts with
- 3 Posts in Loop, Show Stickies First
- Loop within a loop (Again) for template
- How to use current_post to open a new unordered list every five posts
- Rating system and changing the loop
- Authors List page – How to include only those with wp_user_level as Author
- Pagination for multiple loops
- How to target thumbnails of the first post in the loop
- Infinite Scroll on a loop?
- Problem getting current post tags to show in a widget
- Gather posts into a cart/lightbox and share with another user
- Include multiple page ids in loop
- “Call to a member function have_posts() on array” error on have_posts();
- How to exclude or filter password protected posts when using next_post_link() previous_post_link
- For each loop on every word in post
- Display name of taxonomy once
- Custom Field Repeating When Using foreach
- Displaying the first, second, and third posts from a category in separate slides
- Get the image src and href data from posts
- Call wp-blog-header.php header without performing a wp_query
- Display post formats differently on index.php (loop in function)
- How to output thumbnail twice in a loop
- Frontpage pagination by week
- Integrating WordPress with Your Website
- Multiple instances of Featured Image Thumbnail As A Background On Homepage
- Display more than 10 posts on author.php file
- Accessing the Posts page Content
- WP_User_Query not searching
- How to use this $tax_selection variable in this custom loop?
- get random users each time based on the meta key
- Display all categories as plain text
- Query post & loop problem.
- Save custom field types with this function…?
- How do i create a loop that list and divide posts into months?
- delete_user_meta from a foreach results page
- Forcing page to top of the list when using get_pages
- How to display fields from the loop in two separate divs
- How to use single.php output in function.php
- Safely changing UserID’s, re-using deleted UserID’s and automatically using deleted userID’s instead of an increment
- Check value of post meta within IF statement
- My WordPress installation doesn’t load correct template
- Work arounds for conditional checks inside the loop in search.php?
- Transient not working for external data
- adding tax_query to $query_string
- Popular posts with Varnish ESI
- Querying posts from only one category and exluding the latest post
- Remove posts_orderby filter then add it back in
- the_title() Returns the page title instead of the post
- WP update_post_meta link loop
- Need some help with “the_widget()” function
- Conditional Check in The Loop’s Parameters
- How does the JSON API work to parse incoming JSON and fetch a post based on an ID?
- How to add excerpt in loop in Twenty Eleven theme?
- Exclude Authors based off date of last post
- How to implement template file and the loop
- Show only posts from todays date [duplicate]
- Get all user with both meta_value
- Why did my most recent article fall behind an older one on my site?
- Hook in the loop after the first post
- Export user data from Squirrly’s Starbox plugin?