Saltar navegación


Overview of the issue

If you’re using a custom order for related posts in a Relationship or Post Object field, you’ll see the order is not keep when translating the post. Instead, the posts will be ordered by ID.


You can add this snippet to your theme’s functions.php.

Note that where it says


you may need to change to


depending on the post type you’re using.

add_filter( 'acf/load_value/type=relationship', 'format_order' );
function format_order( $value ){

$lang = apply_filters( 'wpml_current_language', null );
    foreach ($value as $key => $id) {
        $type = get_post_type($id);
        $value[$key] = apply_filters( 'wpml_object_id', $id, $type, true, $lang);
return $value;

Deje una respuesta

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

Puede utilizar estas etiquetas:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>