Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    You can’t synchronize a single term with Polylang built code. you choose for a specific taxonomy with the pll_copy_taxonomies filter, but not a single term.

    Thread Starter cichy

    (@cichy)

    Hi Chouby,

    Thank you for your feedback. Any chance for such feature in any of the future releases?

    Plugin Author Chouby

    (@chouby)

    Could you explain your use case?

    Thread Starter cichy

    (@cichy)

    Yes, sure. The client has 3 different products and each product team will be publishing posts under one of the three main categories (the regular post category). Each main category name (each term) is the name of the product which is the same in each language.

    Let’s say that product names are as follows “Product A”, “Product B”, “Product C”. So I create three post categories (terms) named “Product A”, “Product B”, “Product C”. I have three languages and in each language it is going to be “Product A”, “Product B”, “Product C”. So these three terms are the only ones I would like to have synchronized and each subterm will have it’s own translation and this is the reason I can’t synchronize all categories.

    If I can’t synchronize the top three terms I will have to append language code at the end of each slug, which is basically an issue as it discloses the fact which language is the primary one.

    I am using language directories in paths so perhaps there is some other solution I could use here to avoid appending the language code?

    Thank you in advance for your help.

    regards.

    Plugin Author Chouby

    (@chouby)

    It’s quite different of what I had in mind. For what I understand, you would like to share the same category name across languages. It’s already possible but you have to create 3 different categories with all the same name. However, at the moment, these categories won’t share the same slug. For example, you would have:
    * English name: Product A -> English slug: product-a
    * German name : Product A -> German slug : product-a-de

    Thread Starter cichy

    (@cichy)

    However, at the moment, these categories won’t share the same slug

    Yep ?? this is what I mean. I did create 3 categories, all with the same name. But I was hoping for the same slug as well ??

    Anyway it would be great, if you could consider such feature for the future.

    I’ll mark this topic as resolved (as it was explained).

    Best regards,
    Przemek

    Hi cichy,
    maybe this littel plugin will help you in the minetime.

    https://github.com/grappler/polylang-slug

    Thread Starter cichy

    (@cichy)

    Hi Kochhase,

    Thank you for the hint. Could you advise how should I used this plugin? It’s installed and activated. I am now trying to create a translation of the category name using the same slug but it does not allow me to update the category.

    Thanks,
    Przemek

    Thread Starter cichy

    (@cichy)

    OK, it seems to be working. It’s just that the interface has some validation and does not allow to save the slug in create/edit category view if such has already been used but if I do an update on db level it is working.

    Thanks a lot Kochhase ??

    Thread Starter cichy

    (@cichy)

    Actually it still works after deactivating the plugin. I will do more tests later to see if I need it at all. I need to have it working for three category names only.

    Thanks,
    Przemek

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Possibility to synchronize only a certain term’ is closed to new replies.