• First of all: The plugin is great!
    I only have a small optical problem:
    The data I display is separated by a comma.
    Is there a possibility to use a line break for the display instead of the separation by commas?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Frederik Rosendahl-Kaa

    (@frederik-rosendahl-kaa)

    Hi @otto-ffm,

    You can use this filter hook “acfvc_checkbox” to change how the field should be displayed.

    Here is an example of what the filter hook looks like, you can put the code in your functions.php in your theme. preferably in a child theme so that it is not overwritten when your theme is updated.

    add_filter( 'acfvc_checkbox', 'function_name', 10, 3 );
    function function_name( $output, $field, $post_id ){
    
        if ( array_key_exists( 'name', $field ) && $field['name'] == 'acf_field_name' ) {
    
            //Your code here
    
        }    
    
        return $output;
    
    } 
Viewing 1 replies (of 1 total)
  • The topic ‘Line break instead of commas’ is closed to new replies.