Get Involved
No items added to cart
Home
Discover
Hire
Until an official mod will be released you can use this php snippet to display total posts of a post type with an elementor shortcode widget.
Use shortcodes like [total_places], [total_events], etc.
Duplicate snippet and change post type slug.
// Get total placesadd_shortcode('total_places', 'count_places');function count_places() {$count_posts = wp_count_posts('places');$published_posts = $count_posts->publish;return $published_posts . '' . '';} // Get total eventsadd_shortcode('total_events', 'count_events');function count_events() {$count_posts = wp_count_posts('events');$published_posts = $count_posts->publish;return $published_posts . '' . '';}
// Get total placesadd_shortcode('total_places', 'count_places');function count_places() {$count_posts = wp_count_posts('places');$published_posts = $count_posts->publish;return $published_posts . '' . '';}
// Get total eventsadd_shortcode('total_events', 'count_events');function count_events() {$count_posts = wp_count_posts('events');$published_posts = $count_posts->publish;return $published_posts . '' . '';}
Are you sure you want to exit? Your current conversation will be lost.