Home › Forums › Front-end Issues › How to register taxonomy for multi vendor › Reply To: How to register taxonomy for multi vendor
Sorry this is code where need hook for custom product category
if ( ! empty( acf_get_fields( $field_group['ID'] ) && ! empty( $id ) ) ) {
foreach ( acf_get_fields( $field_group['ID'] ) as $field_group_field ) {
acf_form_head();
$display_fields_post = apply_filters( 'acf_fields_display_wcmp_post', array(
'post_id' => $id, // Unique identifier for the form
'field_groups' => array( $field_group['ID'] ) , // Create post field group ID(s)
'form' => false,
'return' => '%post_url%' , // Redirect to new post url
'fields' => array( $field_group_field['ID'] ),
'uploader' => 'wp',
), $field_group['ID'] , $field_group_field['ID'] );
// Display acf fields at vendor dashboard
acf_form( $display_fields_post);
}
}
Need to can get different Fields on different Product Category
Thank you
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.