Skip Navigation

[Resolved] list Posts order by title in both original and secondary language

This thread is resolved. Here is a description of the problem and solution.

list Posts order by title in both original and secondary language

You can find the proposed solution in this case with the following reply:

Relevant Documentation:

This support ticket is created 2 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Jaime 2 years, 9 months ago.

Assisted by: Minesh.


Tell us what you are trying to do?
I had an issue with a Post Navigation and Related Posts solved (very efficiently) by Minesh here:

At the end of the ticket, the url linking to solve my problem was this:

<a href="/related-locations/?wpv-relationship-filter=[wpv-post-id item='$current_page']&wpv_paged=[wpv-loop-index]&wpv_view_count=6251">[types field='imagen-principal-localizacion' align='center' size="custom" width="650" height="500" crop="true" class="image-localizacion-panel-ruta"][/types]</a>

It's working perfectly, but I forgot I have posts on 3 languages.
I'm trying to make this url work on any languages, but I can't. It only works on language by default (Spanish, in this case).
I guess it's something about how the link "finds" the post it should display, but I don't understand how to make it run.

Is there any documentation that you are following?

I searched on other tickets, but I'm not really sure about what I'm looking for... a string? I'm getting lost here.
So far what I have done is 1) translate to English the page where the view is shown 2) tried to conditional display/hide the url based on language, as I saw in this ticket here, but I can't make it work...

What is the link to your site?
You can see it running properly in Spanish, for example, here:
hidden link

and here, the English version, if you click on any of the Locations related below, you can see it opens a wrong Location.
hidden link



Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Could you please share admin access details and let me see what I can do in this case.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.



Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

What i've done is I've set the following view to order by post title - Asc:
=> hidden link
=> hidden link

Because - before both of the above view set to order by date and there was a conflict in dates (for instance, original posts created today and translation done tomorrow) due to that there in both view posts are not listed in the same order.

Now, if you see on both the pages:
- hidden link
- hidden link

Posts are listed in the same order and now when you click the post, it will display the associated post. Can you please confirm.


My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.