render(); } public function render() { $posts = get_posts( array( 'post_type' => 'liquid-archives', 'posts_per_page' => -1, ) ); if ( $posts ) { foreach ( $posts as $post ) { $condition = liquid_helper()->get_page_option( 'lqd_archives_rule', $post->ID ); if ( empty( $condition ) ) { $condition = array(); } if ( is_category() && in_array( 'category-archive', $condition ) === true ){ echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post->ID ); return; } elseif ( is_tag() && in_array( 'tag-archive', $condition ) === true ){ echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post->ID ); return; } elseif ( is_author() && in_array( 'author-archive', $condition ) === true ){ echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post->ID ); return; } elseif ( is_search() && in_array( 'blog-search', $condition ) === true ){ echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post->ID ); return; } elseif ( is_tax() && in_array( 'taxonomy-archive', $condition ) === true ){ echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post->ID ); return; } elseif ( is_date() && in_array( 'date-archive', $condition ) === true ){ echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post->ID ); return; } elseif ( is_home() && in_array( 'blog-archive', $condition ) === true ){ echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post->ID ); return; } else { while ( have_posts() ) : the_post(); liquid_get_content_template(); endwhile; $links = paginate_links( array( 'type' => 'array', 'format' => '?page=%#%', 'prev_next' => true, 'prev_text' => '', 'next_text' => '' )); if( !empty( $links ) ) { printf( '', join( "\n\t