How to have a no records message in Elementor for an Archive page?
/** * @source: https://github.com/elementor/elementor/issues/7624#issuecomment-645129375 */ add_action('elementor/query/query_results', function($query) { $total = $query->found_posts; if ($total == 0) { if ( $query->get("post_type") == "chapter" ) { echo 'Sorry!…
priyankmaniarOctober 12, 2022