Support

Account

Home Forums Front-end Issues Acf_form working in a spanish website

Helping

Acf_form working in a spanish website

  • Hi,

    I’m using acf_form to update a custom post type form on my website, which is in spanish.

    In the options Args for the acf_form I set
    ‘post_title’ => true

    But instead of showing on the form Titulo (title in spanish) it shows the english version… how can I change this?

    Also, some form fields errors show in english.

    Thanks for your help

  • Hi @portegno

    I believe you can change it by creating a Spanish translation for ACF. I think you can use Loco Translate to do it.

    The other method would be using this code in your functions.php file:

    function my_acf_prepare_field( $field ) {
        
        $field['label'] = "Titulo";
        return $field;
        
    }
    add_filter('acf/prepare_field/name=_post_title', 'my_acf_prepare_field');

    I hope this helps 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Acf_form working in a spanish website’ is closed to new replies.