Home › Forums › General Issues › Forming URL from 2 fields › Reply To: Forming URL from 2 fields
Hi idesignandhost
Question 1.
Yes, you can simply use php concatenate. For example:
$field_1 = get_field('field_1');
$field_2 = get_field('field_2');
$join_me = 'Hello, using a . joins things together: '.$field_1.' and '.$field_2;
Question 2
You can try something like:
function wp_disable_acf_fields( $field ) {
if( !is_admin() ){
$field['disabled'] = 1;
}
return $field;
}
add_filter('acf/load_field/key=field_5996a05bc0d7d', 'wp_disable_acf_fields'); #replace field key
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.