Uploaded PDFs and polylang

Viewing 11 posts - 1 through 11 (of 11 total)
#152940

Heather Bodlak
Participant

Hello,
I am setting up a website, in two languages: Spanish and Gallego.

On a page, I have inserted a shortcode to display PDFs to be downloaded, that have a specific category assigned.

example:
[wpdm_category id=”xiii-autocross-carballo-2021″ order=”desc” template=”link-template-default-wdc” cols=1 colspad=1 colsphone=1]

I have this shortcode on two pages: one in the default language (spanish) and then the second language (gallego).
But on the second language, the shortcode doesn’t work – it says “Category doesn’t exist!”

Do I have to create a translation for every upload, with translated category assigned?
Or is there a way for me to use that one same category on all pages (all languages?)

(ie, the spanish PDFs to be downloaded on the spanish page, and gallego page)

I hope I made sense!
Thank you

#152976

Tanvir
Moderator

Hello Heather ,

Please give the temporary wordpress admin access of your website in a private reply

so that we may check the issue further.

Thanks

#153961

Heather b
Participant
This reply has been marked as private.
#153966

Heather Bodlak
Participant
This reply has been marked as private.
#154013

Heather Bodlak
Participant
This reply has been marked as private.
#154045

Tanvir
Moderator

I tested by creating new cats and see it is working

Please check the two pages created in private view
https://www.autocrosscarballo.com/gl/category-gellego/
https://www.autocrosscarballo.com/category-spanish/

the newly created categories are:
https://www.autocrosscarballo.com/wp-admin/term.php?taxonomy=wpdmcategory&tag_ID=41&post_type=wpdmpro&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dwpdmcategory%26post_type%3Dwpdmpro%26from_tag%3D41%26new_lang%3Dgl
https://www.autocrosscarballo.com/wp-admin/term.php?taxonomy=wpdmcategory&tag_ID=43&post_type=wpdmpro&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dwpdmcategory%26post_type%3Dwpdmpro%26from_tag%3D41%26new_lang%3Dgl

what I did to test,

created new category in spanish then made another category in gallego as a translation of spanish.

then set the categories of download packages according to their languages. then tested using same shortcode structure in the pages and found it is working.

Let me know if it is resolved

#154046

Heather Bodlak
Participant

Hi
i appreciate your help…
but what you did is what I had done already: create two differente categores, one for each language.

but I was hoping I could use the same category for all languages, ie, to insert this shortcode
[wpdm_category id="test-esp-cat" order="desc" template="link-template-default-wdc" cols=1 colspad=1 colsphone=1]
on both the spanish and gallego pages
(and show the same spanish PDFs on both)

So… Thanks anyway! It seems it must interpret paths or something (parent pages… not sure) so that if the shortchode uses the spanish category, when used on the gallego pages, we get the message “category not found”.

I will simply have to rememeber to upload the files twice, and assign each one its different category.

#154051

Tanvir
Moderator

Hello @heather,

I think to use the same slug(category id) for both languages, you have to deal with polylang plugin. They don’t support this in their free version.

You can read more about this issue here

#154052

Heather Bodlak
Participant

Yes, that makes sense.
It’s interesting though that this isn’t an issue if using the tree category extension (as you can see in the widget here http://www.rallyenaron.com
Thanks

#154081

Tanvir
Moderator

Hello @Heather,

As I said, it needs to be handled from polylang side. Or like category shortcode, you also needs to use 2 tree shortcodes for 2 languages ( [wpdm_tree category="xiii-autocross-carballo-2021"]) and [wpdm_tree category="xiii-autocross-carballo-2021-gl"] )

Thanks

  • This reply was modified 2 years, 11 months ago by Tanvir.
#154084

Heather Bodlak
Participant

Yes, but on the other site that is also two languages, using polylang, I can use the same category in the widget and it displays on both languages, I don’t get the “category not found message”

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Uploaded PDFs and polylang’ is closed to new replies.