I’m a little confused.
You’re using WooCommerce right? It looks like there’s some kind of redirect going on probably caused by WooCommerce. And I don’t understand how you are creating the downloads in the first place.
But anyway, 2 options I think.
1) You can try putting this code (same as in the other thread you mentioned) in your functions.php file and see if that fixes it. But I am not too hopeful as I suspect you have lots of other things going on.
add_filter( 'post_type_link', 'my_theme_amend_bulk_download_url', 10, 2 );
function my_theme_amend_bulk_download_url( $post_link, $post ) {
if ( class_exists( 'Bulk_Attachment_Download_Manager' ) ) {
if ( 'jabd_download' == $post->post_type ) {
if ( current_user_can( 'edit_post', $post->ID ) ) {
$uploads_dir_info = wp_upload_dir();
$post_link = $uploads_dir_info['baseurl'] . '/' . JABD_DOWNLOADS_DIR . '/' . get_post_meta( $post->ID, 'jabd_path', true );
}
}
}
return $post_link;
}
2) If that doesn’t work and if you’re comfortable with it you can either give me temporary admin access to your site so I can have a look or maybe do something via screenshare.
Try 1) first. If that doesn’t work and you’re ok with 2) you can send me a message including an email address via https://www.sneezingtrees.com/contact/ and we’ll see what we can sort out.