• Hi!

    I have a website using Listify theme. The theme uses custom post types for listings and stores geolocation information as custom fields.

    I have set Polylang options to synchronize custom fields, but custom fields are not duplicating (or synchronizing) when i add translation to the listing.

    Also have tried to add wpml-config.xml file with the custom fields secified:

    <wpml-config>
        <custom-fields>
            <custom-field action="copy">geolocation_lat</custom-field>
    	<custom-field action="copy">geolocation_long</custom-field>
        </custom-fields>
    </wpml-config>

    Also added a filter to the functions.php:

    add_filter( 'pll_copy_post_metas', 'copy_post_metas' );
     
    function copy_post_metas( $metas ) {
        return array_merge( $metas, array( 'geolocation_lat', 'geolocation_long' ) );
    }

    Unfortunatley none of the above has worked for me.

    Any suggestions on how to get it done?

The topic ‘Custom fields not duplicating when adding translation (using Listify theme)’ is closed to new replies.