add_shortcode(advertizer,function($atts,$content,$tag){ global $config_file; '', 'posts_per_page' => '', 'offset' => '', ), $atts)); $args = $atts; $args['post_type'] = 'advertizer'; $args['post__in'] = array_values(array_filter(array_unique(array_map('intval',explode(',',$args['post__in']))))); if(!$args['post__in']){ unset($args['post__in']); } if(!(int)$args['posts_per_page']){ $args['posts_per_page'] = get_option('posts_per_page'); } $args['offset'] = (int)$args['offset']; $query = new WP_Query($args); if($query && $query->posts){ foreach($query->posts as $item){ global $Item; $Item = $item; require get_stylesheet_directory() . '/templates/loop-advertizer.php'; } } return $output; }); add_shortcode(load_more,function($atts,$content,$tag){ global $config_file; '', 'posts_per_page'=>-1, ), $atts)); $args = [ ]; $args['post_type'] = 'post'; if($atts['term_ids']){ $args['tax_query'] = [ [ 'taxonomy'=>'category', 'terms'=>explode(',',$atts['term_ids']), 'operator'=>'IN', 'field'=>'term_id', ] ]; } $args['posts_per_page'] = get_option('posts_per_page'); global $displayed_posts; if($displayed_posts){ $args['exclude_ids'] = $displayed_posts; } ?>
return $output; }); add_shortcode(iciao_field,function($atts,$content,$tag){ global $config_file; '', ), $atts)); extract($atts); if($acf_option_field == 'the_content'){ } return $output; }); add_shortcode(menu,function($atts,$content,$tag){ global $config_file; '', ), $atts)); extract($atts); echo print_menu($menu_id); return $output; });