download-monitor
download-monitor copied to clipboard
the no access page is not saved when using WPML
Describe the bug In the CMS I'm using ACF (Post Object field) to select 'Members only' download files from Download Monitor. These are then output in a tag as a URL. When clicked it downloads the file if the user is logged in. If they are not logged in it redirects to the No access page.
If I'm in the second language and click on a download link as a non logged in user it always goes to the first language (English) NO access page. I know how to detect current language in WPML but I can't work out where I would add this check in order to go to the current language URL of the No access page.
https://support.wpchill.com/conversation/5932?folder_id=95
To Reproduce Steps to reproduce the behavior: install and activate WPML. Set there 2 or more languages. Create a no access page on the second language. Go to your WP dashboard > select your language > Downloads > Settings > Advanced > Pages Setup > No Access page > select there your page > Save changes. Go back to the main language > set there your no access page > Save changes. Go back to your second language. You will see that the no access page is not saved.
Please check also with polylang
WPML still doesn't work, selecting a different language and changing the No Access page setting it will remove the selected page from the other language.