привет в этом плагине. Я пишу этот пост с 2 кодами для cpt1 и cpt2, теперь я хочу, чтобы код получил общее количество для этого типа CPT Custom Posting ///, что означает // menha_dir_ltg + mobadra1_dir_ltg = ??? любая идея
//this is to count totala custom post -- mobadra2_dir_ltg - ta7tag da3m
add_shortcode('total-listing-counter-menha','total_listing_counterـmenha');
function total_listing_counterـmenha(){
$count_posts = wp_count_posts( 'menha_dir_ltg' )->publish;
return $count_posts;
}
//this is to count totala custom post -- mobadra1_dir_ltg - ta7tag da3m
add_shortcode('total-listing-counter-ta7tag-da3m','total_listing_counterـta7tagـda3m');
function total_listing_counterـta7tagـda3m(){
$count_posts = wp_count_posts( 'mobadra1_dir_ltg' )->publish;
return $count_posts;
}