Just added a Filter for that custom field
`
add_filter(‘acf/fields/user/query/name=customfieldname’, ‘acf_refernt_field_filter’, 10, 3);
function acf_refernt_field_filter( $args, $field, $post )
{
// modify get users args of that field
$args[‘role’] = ‘my-custom-user-role’;
return $args;
}
`
Just added a Filter for that custom field
`
add_filter(‘acf/fields/user/query/name=customfieldname’, ‘acf_refernt_field_filter’, 10, 3);
function acf_refernt_field_filter( $args, $field, $post )
{
// modify get users args of that field
$args[‘role’] = ‘my-custom-user-role’;
return $args;
}
`
Thank you for your hint!
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . 'content' );
had a /
before the content
You are right!
<link rel='stylesheet' id='acf-global-css' href='http://domain.com/wordpress/www/htdocs/w010bdef/domain.com/wp-content/plugins/advanced-custom-fields/css/global.css?ver=4.3.2' type='text/css' media='all' />
<link rel='stylesheet' id='acf-css' href='http://domain.com/wordpress/www/htdocs/w010bdef/domain.com/wp-content/plugins/advanced-custom-fields/css/acf.css?ver=4.3.2' type='text/css' media='all' />
This part is to much:
wordpress/www/htdocs/w010bdef/domain.com/
Just to know, my Domain is linkt to the following Rootpath directory:
/www/htdocs/w010bdef/domain.com/
i have no only two other plugins… so there are no issues
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.