+
+
+
+
+ false,
+ 'hierarchical' => false,
+ 'parent' => 0,
+ 'orderby' => 'name',
+ 'hide_empty' => true,
+ 'show_option_none' => '',
+ 'title_li' => '',
+ );
+
+ if ( 'only-subcategories' === $sunflower_categories_archive_setting ) {
+ $sunflower_args['parent'] = $cat;
+ }
+
+ if ( 'no' !== $sunflower_categories_archive_setting ) {
+ $sunflower_categories_archive = wp_list_categories( $sunflower_args );
+
+ if ( $sunflower_categories_archive ) {
+ echo '';
+ echo wp_kses_post( $sunflower_categories_archive );
+ echo '
';
+ }
+ }
+
+ /* Start the Loop */
+ $sunflower_list_items = '';
+ while ( have_posts() ) {
+
+ the_post();
+
+ /*
+ * 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.
+ */
+ ob_start();
+ get_template_part( 'template-parts/content', 'archive' );
+
+ $sunflower_article = ob_get_clean();
+
+ $sunflower_list_items .= sprintf(
+ '%s
',
+ $sunflower_article
+ );
+
+ }
+ ?>
+
+
+ array(
+ 'class' => true,
+ 'datetime' => true,
+ ),
+ )
+ )
+ );
+ ?>
+
+ __( 'previous', 'sunflower' ),
+ 'next_text' => __( 'next', 'sunflower' ),
+ );
+
+ $sunflower_paginated_links = paginate_links( $sunflower_args );
+
+ if ( $sunflower_paginated_links ) {
+ printf(
+ '',
+ wp_kses_post( $sunflower_paginated_links )
+ );
+ }
+ } else {
+ get_template_part( 'template-parts/content', 'none' );
+
+ }
+
+ ?>
+
+