>
” />
” />
>
‘posts_per_page’ => $artmag_opt[‘header-slider-number’],
‘post_status’ => “publish”,
‘category_name’ => $artmag_opt[‘header-slider-category’],
‘ignore_sticky_posts’=> 1,
);
$the_query = new WP_Query($argswp);
if ($the_query->have_posts()) :
while ($the_query->have_posts()) : $the_query->the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), “artmag-five-grid” );
$image = $image[0];
?>
‘post_status’ => “publish”,
‘category_name’ => $artmag_opt[‘header-slider-category’],
‘ignore_sticky_posts’=> 1,
);
$the_query = new WP_Query($argswp);
if ($the_query->have_posts()) :
while ($the_query->have_posts()) : $the_query->the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), “artmag-five-grid” );
$image = $image[0];
?>
“ style=”background: url(‘‘);” style=”background: ;”>
$videotype = “youtube”;
parse_str( parse_url( $video_url, PHP_URL_QUERY ), $videoid );
$videopath = $videoid[‘v’];
}elseif(strlen(strstr($video_url,$youtubesec))>0) {
$needle = “youtu.be/”;
$pos = strpos($video_url, $needle);
$start = $pos + strlen($needle);
$vid_id = substr($video_url, $start, 11);
$videotype = “youtube”;
$videopath = $vid_id;
}elseif(strlen(strstr($video_url,$vimeo))>0){
$videotype = “vimeo”;
sscanf(parse_url($video_url, PHP_URL_PATH), ‘/%d’, $videoid);
$videopath = $videoid;
}else{
$videotype = “mp4”;
$videopath = $video_url;
}
$randomKey = substr(str_shuffle(“0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”), 0, 10);
?>
parse_str( parse_url( $video_url, PHP_URL_QUERY ), $videoid );
$videopath = $videoid[‘v’];
}elseif(strlen(strstr($video_url,$youtubesec))>0) {
$needle = “youtu.be/”;
$pos = strpos($video_url, $needle);
$start = $pos + strlen($needle);
$vid_id = substr($video_url, $start, 11);
$videotype = “youtube”;
$videopath = $vid_id;
}elseif(strlen(strstr($video_url,$vimeo))>0){
$videotype = “vimeo”;
sscanf(parse_url($video_url, PHP_URL_PATH), ‘/%d’, $videoid);
$videopath = $videoid;
}else{
$videotype = “mp4”;
$videopath = $video_url;
}
$randomKey = substr(str_shuffle(“0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”), 0, 10);
?>
“; } ?>
- ‘posts_per_page’ => $artmag_opt[‘header-slider-number’],
- ‘post_status’ => “publish”,
- ‘category_name’ => $artmag_opt[‘header-slider-category’],
- ‘ignore_sticky_posts’=> 1,
- );
- $imgcntm = 1;
- $the_query = new WP_Query($argswp);
- if ($the_query->have_posts()) :
- while ($the_query->have_posts()) : $the_query->the_post();
- ?>
‘posts_per_page’ => $artmag_opt[‘header-slider-number’],
‘post_status’ => “publish”,
‘category_name’ => $artmag_opt[‘header-slider-category’],
‘ignore_sticky_posts’=> 1,
);
$the_query = new WP_Query($argswp);
if ($the_query->have_posts()) :
while ($the_query->have_posts()) : $the_query->the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), “artmag-five-grid” );
$image = $image[0];
?>
‘post_status’ => “publish”,
‘category_name’ => $artmag_opt[‘header-slider-category’],
‘ignore_sticky_posts’=> 1,
);
$the_query = new WP_Query($argswp);
if ($the_query->have_posts()) :
while ($the_query->have_posts()) : $the_query->the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), “artmag-five-grid” );
$image = $image[0];
?>