'aiovg_videos', 'posts_per_page' => 500, 'orderby' => 'title', 'order' => 'ASC', '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 $name => $section ) : $classes = array( 'aiovg-shortcode-section', 'aiovg-shortcode-section-' . esc_attr( $name ) ); if ( 'general' == $name ) $classes[] = 'aiovg-active'; ?>

1. Add Categories', 'all-in-one-video-gallery' ), esc_url( admin_url( 'edit-tags.php?taxonomy=aiovg_categories&post_type=aiovg_videos' ) ) ); ?>

2. Add Videos', 'all-in-one-video-gallery' ), esc_url( admin_url( 'edit.php?post_type=aiovg_videos' ) ) ); ?>

3.

AIOVG - Video Gallery Gutenberg block in your POST/PAGE.', 'all-in-one-video-gallery' ), esc_url( admin_url( 'post-new.php?post_type=page' ) ) ); ?>

AIOVG - Video Gallery widget in your website sidebars.', 'all-in-one-video-gallery' ), esc_url( admin_url( 'widgets.php' ) ) ); ?>