30, 'post_type' => 'avpa_vidoes');
$data = new WP_Query($query);
// The Loop
if ($data->have_posts()) {
echo '
| Video |
Path |
Video reports |
';
while ($data->have_posts()) {
$data->the_post();
if (strpos(get_the_title(), 'youtube') !== false) {
echo '| '.
do_shortcode('[avpa src="'.get_the_title().'" autoplay="false" webm="youtube" width="300" height="300" ]')
.' | ';
}else{
echo '
| '.
do_shortcode('[avpa src="'.get_the_title().'" autoplay="false" width="300" height="300" ]')
.' | ';
}
echo ''.get_the_title().' | ';
echo 'View |
';
}
echo '
';
} else {
// no posts found
}
/* Restore original Post Data */
wp_reset_postdata();
?>