Home › Forums › General Issues › Set meta value for all users › Reply To: Set meta value for all users
Hi @youngwolf0
Your code looks perfect, so for that great work.
Your next step is to debug the function to find out at what line it is failing.
Firstly, turn on DEBUG MODE in your wp-config.php file and then use a simple script like so to test that your loop is working:
<?php
$user = "user_" . $member->ID;
echo '<pre>';
print_r( $user );
echo '</pre>';
?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.