• Resolved Tom

    (@godsdead)


    I have set up video categories to be displayed for logged in users only. The problem is, if you type in the slug manually, it’ll show an archive of videos, and this doesn’t generate a page that I can edit with elementor!

Viewing 1 replies (of 1 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Our videos belong to WordPress custom post type “Videos (aiovg_videos)”. I understand you speak about the custom post type archive pages. Kindly try adding the following code to the bottom of your theme’s functions.php file. This should disable the archive page for our plugin.

    function aiovg_disable_video_archive_pages() {
        if ( is_archive( 'aiovg_videos' ) ) {
            wp_redirect( home_url(), 301 );
            exit;
        }
    }
    add_action( 'template_redirect', 'aiovg_disable_video_archive_pages' );

    Hope this solved your issue!

Viewing 1 replies (of 1 total)
  • The topic ‘How do I edit the archive page?’ is closed to new replies.