Uploaded PDFs and polylang

in Download Manager Free

Viewing 11 posts - 1 through 11 (of 11 total)
May 18, 2021 at 6:08 pm
#152940
Participant
Heather Bodlak
OP

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

May 19, 2021 at 6:57 am
#152976
Spectator
Tanvir

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

May 20, 2021 at 12:09 pm
#153961
Participant
Heather b
This reply has been marked as private.
May 20, 2021 at 1:15 pm
#153966
Participant
Heather Bodlak
OP
This reply has been marked as private.
May 21, 2021 at 9:16 am
#154013
Participant
Heather Bodlak
OP
This reply has been marked as private.
May 22, 2021 at 9:34 am
#154045
Spectator
Tanvir

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

May 22, 2021 at 10:10 am
#154046
Participant
Heather Bodlak
OP

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.

May 22, 2021 at 11:29 am
#154051
Spectator
Tanvir

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

May 22, 2021 at 11:54 am
#154052
Participant
Heather Bodlak
OP

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

May 23, 2021 at 11:24 am
#154081
Spectator
Tanvir

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 4 years, 9 months ago by Tanvir.
May 23, 2021 at 11:59 am
#154084
Participant
Heather Bodlak
OP

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.