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?
- Users as team members through a loop in elementor
- Making a specific page wordpress compatable that is not index
- Return only content in excerpt field in loop
- Ajax category pagination problem
- How do I aproach this?(for sale, for lease, sold->move something from a category to another)
- Unable to login + Redirect loop on mobile
- Posts are being displayed from old to new, in ascending order
- Loop in taxonomy for terms and post
- My loop of random posts drags in comments of said random post
- Default Template infinite loop of Title
- Featured posts and the loop
- Why my title change the last post title in my loop?
- How to fix pagination for custom loops?
- Display single post inside accordion based on form submission results
- WordPress Tags in class
- setup_postdata in “loop-handling” php file called via $.ajax
- User management missing after migration to new host
- Recent posts headlines. How to optimize the loop
- Get child taxonomies in loop
- One page loop issue with posts
- Adding pagination to WP_Query [duplicate]
- Secondary loop cuts off at 10 posts?
- Insert/sticky multiple posts in multiple positions
- Thumbnail of the latest posts page
- Humanmade | Custom meta box class: How to display a repeatable meta box group?
- Running the Loop outside of WordPress
- how to use custom loop in the_content filter
- Can’t print out returned value
- Set loop format & have a loop inside other one
- Get author meta of all writers
- This webpage has a redirect loop issue with SSL page
- Need a conditional to test if title of parent page matches title of child page
- Buddypress Group Activity Loop Filter activity type [closed]
- change the_content images for different sizes (Desktop, tablet, mobile)?
- Have multiple loops on a page appear after/between page content
- Query counting excluded category on paged loop
- get_template_part() to render single page Theme
- Using shortcode within shortcode with dynamic variable
- modify default HAVE_POSTS() Loop without inserting new variable (i.e. $loop->HAVE_POSTS)
- get_posts and wp_autop (remove filter)
- Trouble preventing duplicate posts between 2 loops on homepage
- Display latest posts using WP Loop with different size divs
- Can’t see custom field after the Loop [closed]
- How to fix pagination for custom loops?
- Get gallery and product gallery images full size
- Display and Allow users to edit their own profiles
- Display articles related to a custom field on a page
- How to fix pagination for custom loops?
- Let users register weight each day and save it in DB
- Combining external feed into post loop
- Creating Custom user type just like custom post
- Validate user meta and redirect
- Variable not working in sidebar loop
- query_posts ignores the argument
- Building theme so user can change header image [closed]
- The Loop isn’t working
- Need some help with “the_widget()” function
- Let admin users edit member profiles from front end
- Get last 5 days with posts
- WordPress Multiple Loop: Home/Archives Page, with pagination
- Stuck with conflicting loops on page template
- Is there a way to target only images within the loop?
- Code to check amount of blog posts and add css
- Placing the content of one post in two side by side columns, newspaper style
- Get query result before posts are displayed?
- WordPress Group By Problem
- Conditional Check in The Loop’s Parameters
- Twitter bootstrap carousel multiple items in carousel
- Loop to get current parent page “content” and his children content
- Does WordPress Need BuddyPress to Handle Large Amounts of Users?
- Sort users by custom user meta value
- How does the JSON API work to parse incoming JSON and fetch a post based on an ID?
- trying to write a variable into a wp_query, need help!
- Add Div IDs dynamically to CSS
- Why is my pagination showing up?
- How to add excerpt in loop in Twenty Eleven theme?
- My custom query not detecting the correct category
- Showing related posts (custom post type) outside of the loop
- Same Loop on Multiple Pages
- display only parent replies count in index.php
- Changing the loop w/o killing category links