post_count); ?>

$name )); foreach ($categories as $category) { $taxonomy[] = $category->name; } return array_unique($taxonomy); } public static function all_taxonomy_as_text($event_id, $taxonomy): string { $taxonomy_text = ''; $all_taxonomy = get_the_terms($event_id, $taxonomy); if ($all_taxonomy && sizeof($all_taxonomy) > 0) { foreach ($all_taxonomy as $category) { $taxonomy_text = $taxonomy_text . '- ' . $category->name; } } return $taxonomy_text; } public static function get_all_city(): array { //ob_start(); global $wpdb; $table_name = $wpdb->prefix . "postmeta"; $sql = "SELECT meta_value FROM $table_name WHERE meta_key ='mep_city' GROUP BY meta_value"; $results = $wpdb->get_results($sql); //or die(mysql_error()); $city_list = array(); foreach ($results as $post) { if ($post->meta_value) { $city_list[] = $post->meta_value; } } return $city_list; } public function pagination($params, $total_item) { ob_start(); $per_page = $params['show']>1?$params['show']:$total_item; ?> $per_page) { ?>
0 ? 1 : 0); ?>
2) { ?> 5) { ?>
5) { ?>
2) { ?>