Skip Navigation

[Résolu] list Posts order by title in both original and secondary language

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
list Posts order by title in both original and secondary language
Solution:

You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/post-navigation-based-on-one-to-many-relationship-language/#post-1974611

Relevant Documentation:

This support ticket is created Il y a 3 années. 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)

Marqué : ,

This topic contains 3 réponses, has 2 voix.

Last updated by Jaime Il y a 3 années.

Assisted by: Minesh.

Auteur
Publications
#1974395

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:
https://toolset.com/forums/topic/post-navigation-based-on-one-to-many-relationship/

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...
https://toolset.com/forums/topic/conditional-output-language/#post-402783

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

#1974531

Minesh
Supporter

Languages: Anglais (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.

#1974611

Minesh
Supporter

Languages: Anglais (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.

#1974627

My issue is resolved now. Thank you!
GREAT MINESH!!!!

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