esc_html__('Blogever Slider Post Widget', 'blogever'),) ); } public function form($blogever_instance) { isset($blogever_instance['blogever_wdgtcatname']) ? $blogever_wdgtcatname = $blogever_instance['blogever_wdgtcatname'] : null; isset($blogever_instance['blogever_wdgtcatpstorder']) ? $blogever_wdgtcatpstorder = $blogever_instance['blogever_wdgtcatpstorder'] : null; empty($blogever_instance['blogever_wdgtcatpstorder']) ? $blogever_wdgtcatpstorder = 'date' : null; // get the customtitle for the widget isset($blogever_instance['blogever_slider_postids']) ? $blogever_slider_postids = $blogever_instance['blogever_slider_postids'] : null; isset($blogever_instance['blogever_wdgtpostperpage']) ? $blogever_wdgtpostperpage = $blogever_instance['blogever_wdgtpostperpage'] : null; empty($blogever_instance['blogever_wdgtpostperpage']) ? $blogever_wdgtpostperpage = '6' : null; // get the customtitle for the widget ?>
$blogever_wdgtcatname, 'orderby'=>$blogever_wdgtcatpstorderdft, 'posts_per_page'=>$blogever_wdgtpostperpage, 'ignore_sticky_posts' => 1 ); } // gets the featuredone query postids arguments if(false !== !empty($blogever_slider_postids)) { $blogever_featuredone_postids_explode = explode(',',$blogever_slider_postids); $blogever_catwidgetpostargs = array( 'post__in' => $blogever_featuredone_postids_explode, 'orderby'=> $blogever_wdgtcatpstorderdft, 'posts_per_page'=> $blogever_wdgtpostperpage, 'ignore_sticky_posts' => 1 ); } $blogever_catwidgetpostquery = new WP_Query( $blogever_catwidgetpostargs ); ?>