[ad_1]
Kindly add the following code to the bottom of your theme’s functions.php file and replace the word “REDIRECT_URL” with the page URL to which you need to redirect the users when clicking the main AIOVG page.
function aiovg_videos_custom_archive() {
if ( is_post_type_archive( 'aiovg_videos' ) ) {
wp_redirect( 'REDIRECT_URL', 301 );
exit();
}
}
add_action( 'template_redirect', 'aiovg_videos_custom_archive' );Hope this solved our issue!
In case the issue remains, kindly share with us the exact page URL that you speak about. So, I can check this directly and assist you accordingly.
