• Resolved odellgraphicsolutions

    (@odellgraphicsolutions)


    – I have my download option set to Members Only.
    – I have my No Access page set to my login page. (it has the [dlm_no_access] shortcode)
    – If I use the direct URL to the file, not only am I not getting redirected to my login page, but I am getting redirected to ../download-id/7066/ which displays an archive of all posts that include any download shortcode.

    What am I doing wrong?

    I simply want to redirect anyone that may happen to get hold of a download’s direct url to my login page.

Viewing 1 replies (of 1 total)
  • Hey,

    That last part is appended to the “No Access” page so that page knows what download the user came from. However, that should not trigger an archive page. I suspect something in your theme is causing this to happen.

    If you simply want to redirect users to your login page, you can solve this by using our no access redirect filter. This will redirect all users to a set page, without the other “No Access” page functionality.

    An example of this filter can be found here: https://gist.github.com/barrykooij/34fbcebaa4656d428f8b4dc9fe10a82c
    Change the URL in the example to the URL of your login page and place that snippet in your theme’s functions.php file.

    Kind Regards,

    Barry Kooij

Viewing 1 replies (of 1 total)
  • The topic ‘No Access Shortcode not working’ is closed to new replies.