• Resolved moniquemarch

    (@moniquemarch)


    I’m using the ACF “Link” field type in my template and when I edit that link field on a page in French, it overwrites that specific link field on the English tab as well and vice versa. (English is the default language and that page was already saved before, so it’s not an issue of clearing out the page, just overwriting that one field type).

    Any thoughts on how to fix?

    Thank you in advance (I’m a big fan of this plugin)!

    • This topic was modified 8 years, 3 months ago by moniquemarch.
    • This topic was modified 8 years, 3 months ago by moniquemarch.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Try this
    add_filter('wpm_acf_url_config', '__return_empty_array');

    Thread Starter moniquemarch

    (@moniquemarch)

    I added to my functions.php file without luck. And then also tried adding to the class-wpm-acf.php file, and that didn’t seem to work either. The Link field is still getting overwritten.

    This is the specific custom field I’m using: (https://www.advancedcustomfields.com/resources/link/)

    What exactly do you need to translate? Is the title or url? Url registers to the database and therefore can not change dynamically. You will have to register the url for each language. Is it possible to use a different field type better?
    You can use this code to translate the title and url.

    
    add_filter('wpm_acf_link_config', function() {
    	return array(
    		'title' => array(),
                    'url' => array()
    	);
    });
    
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘ACF Link Field Type’ is closed to new replies.