'aiovg_videos', 'posts_per_page' => 1, 'fields' => 'ids', 'no_found_rows' => true, 'update_post_term_cache' => false, 'update_post_meta_cache' => false ); $aiovg_query = new WP_Query( $args ); if ( $aiovg_query->have_posts() ) { $is_video_found = 1; } // Categories $is_category_found = 0; $args = array( 'taxonomy' => 'aiovg_categories', 'parent' => 0, 'hide_empty' => false ); $terms = get_terms( $args ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { $is_category_found = 1; } ?>

$params ) { printf( '', esc_attr( $shortcode ), checked( $shortcode, 'videos', false ), esc_html( $params['title'] ) ); } ?>
$params ) : $classes = array( 'aiovg-shortcode-form' ); $error = ''; if ( 'video' == $shortcode ) { $classes[] = 'aiovg-type-default'; } elseif ( 'videos' == $shortcode ) { $classes[] = 'aiovg-template-classic'; if ( ! $is_video_found ) { $error = sprintf( __( 'No videos found. Add your first video', 'all-in-one-video-gallery' ), esc_url( admin_url( 'post-new.php?post_type=aiovg_videos' ) ) ); } } elseif ( 'categories' == $shortcode ) { $classes[] = 'aiovg-template-grid'; if ( ! $is_category_found ) { $error = sprintf( __( 'No categories found. Add your first category', 'all-in-one-video-gallery' ), esc_url( admin_url( 'edit-tags.php?taxonomy=aiovg_categories&post_type=aiovg_videos' ) ) ); } } ?> ', $error ); } foreach ( $params['sections'] as $key => $section ) : ?> >
'— ' . esc_html__( 'Select Parent', 'all-in-one-video-gallery' ) . ' —', 'option_none_value' => 0, 'taxonomy' => 'aiovg_categories', 'name' => esc_attr( $field['name'] ), 'class' => 'aiovg-shortcode-field widefat', 'orderby' => 'name', 'selected' => 0, 'hierarchical' => true, 'depth' => 10, 'show_count' => false, 'hide_empty' => false ); wp_dropdown_categories( $args ); elseif ( 'categories' == $field['type'] ) : ?>
    'aiovg_categories', 'walker' => null, 'checked_ontop' => false ); wp_terms_checklist( 0, $args ); ?>
    'aiovg_tags', 'walker' => null, 'checked_ontop' => false ); wp_terms_checklist( 0, $args ); ?>

1.

  • Add New Video to upload or embed videos from YouTube, Vimeo, Dailymotion, or any external sources.', 'all-in-one-video-gallery' ), esc_url( admin_url( 'post-new.php?post_type=aiovg_videos' ) ) ); ?>
  • Bulk Import / Export option to quickly import videos from a "CSV file" or a "Folder".', 'all-in-one-video-gallery' ), esc_url( admin_url( 'admin.php?page=aiovg_import_export' ) ) ); ?>

2.

  • AIOVG - Video Gallery block directly in the WordPress block editor.', 'all-in-one-video-gallery' ), esc_url( admin_url( 'post-new.php?post_type=page' ) ) ); ?>
  • AIOVG - Video Gallery widget to your sidebar or footer area.', 'all-in-one-video-gallery' ), esc_url( admin_url( 'widgets.php' ) ) ); ?>