$current_id, 'customizer_layout' => $archive_sidebar_layout ]; $array['position'] = ['left-sidebar']; $array['meta_type'] = 'term'; if( in_array( $archive_sidebar_layout_meta, [ 'left-sidebar', 'customizer-setting' ] ) ) blogzee_get_sidebar( '_blogzee_category_sidebar_custom_meta_field', $array ); } elseif( is_tag() ) { $archive_sidebar_layout_meta = metadata_exists( 'term', $current_id, '_blogzee_post_tag_sidebar_custom_meta_field' ) ? get_term_meta( $current_id, '_blogzee_post_tag_sidebar_custom_meta_field', true ) : 'customizer-setting'; $array = [ 'post_id' => $current_id, 'customizer_layout' => $archive_sidebar_layout ]; $array['position'] = ['left-sidebar']; $array['meta_type'] = 'term'; if( in_array( $archive_sidebar_layout_meta, [ 'left-sidebar', 'customizer-setting' ] ) ) blogzee_get_sidebar( '_blogzee_post_tag_sidebar_custom_meta_field', $array ); } else { if( in_array( $archive_sidebar_layout, ['left-sidebar'] ) ) get_sidebar('left'); } ?>
'; //inner-content-wrap while ( have_posts() ) : the_post(); if( ! is_null( $ads_info ) ) : if( in_array( $wp_query->current_post, $ads_info['random_numbers'] ) ) : blogzee_random_post_archive_advertisement_part( is_array( $ads_info['ads_to_render'] ) ? $ads_info['ads_to_render'][$count] : $ads_info['ads_to_render'] ); $count++; endif; endif; /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ get_template_part( 'template-parts/archive/layout' ); // $post_counter++; endwhile; echo ''; // end: blogzee-inner-content-wrap /** * hook - blogzee_pagination_link_hook * * hooked - blogzee_pagination_fnc - 10 * * @package Blogzee Pro * @since 1.0.0 */ do_action( 'blogzee_pagination_link_hook' ); else : get_template_part( 'template-parts/content', 'none' ); endif; ?>