• Resolved geggino

    (@geggino)


    Hi, how can I disable or hidden the pages concerning the single files?
    I have created a private page with the list of files for categories, the users can immediately click on download from there. This is enough for me.

    Unfortunately, I discovered that the pages of the individual files are also active, visible to all and Google has already indexed.

    I already tried with a rule on htaccess but it also blocks wpdm in administration
    Very thanks!

    • This topic was modified 3 years, 7 months ago by geggino.
    • This topic was modified 3 years, 7 months ago by geggino.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @geggino

    Thank you for writing to us.

    To disable the pages concerning the single file you have to modify the related link template by following this instruction: https://www.wpdownloadmanager.com/doc/template-files/.

    In the related template file, please use the [download_url] template tag which should enable the direct download instead of going to the single files.

    You may check our documentation for more details: https://www.wpdownloadmanager.com/doc/templates/template-tags/.

    With Regards

    I was able to completely disable the single posts by using the following in functions.php:

    add_action( ‘template_redirect’, ‘mwx_disable_wpdm_single’ );
    function mwx_disable_wpdm_single() {
    if ( is_singular( ‘wpdmpro’ ) ) :
    wp_redirect( home_url(), 301 );
    exit;
    endif;
    }

    This redirects the user to the homepage if they try and access the single file page. This is for WP Download Manager Pro – not sure what the post type is for the free version.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘disable pages single packages/files’ is closed to new replies.