'collections', 'parent' => 0, 'orderby' => 'meta_value_num', 'order' => $comic_order, 'meta_query' => array( array( 'key' => 'collection-order', 'type' => 'NUMERIC', )), 'show_count' => 0, 'number' => 1, )); // Define terms array $collection_terms = array(); // Step through array of objects, // and populate terms array foreach ($collection_term_objects as $collection_term_object) { $collection_terms[] = $collection_term_object->slug; } $latest_collection_id = $collection_term_objects[0]->term_id; ?>
'comic', 'post_status' => 'publish', 'posts_per_page' => 1, 'orderby' => 'post_date', 'order' => $comic_order, 'tax_query' => array( array( 'taxonomy' => 'collections', 'field' => 'slug', 'terms' => $collection_terms, ), ), ); $single_comic_query = new WP_Query($single_comics_args); /* Start the Loop */ while ($single_comic_query->have_posts()): $single_comic_query->the_post(); ?>
array( 'title' => array(), 'href' => array(), ), 'i' => array( 'class' => array(), ), 'img' => array( 'class' => array(), 'src' => array(), ), ); $random_url = home_url() . '/?random&nocache=1&post_type=comic'; $image_button_url = get_option('toocheke-random-button'); $button = $display_default ? '' : ''; ?> " href="" title="Random Comic">
 
'comic', 'post_status' => 'publish', 'posts_per_page' => 10, 'paged' => $comics_paged, 'orderby' => 'post_date', 'order' => $comic_order, 'tax_query' => array( array( 'taxonomy' => 'collections', 'field' => 'slug', 'terms' => $collection_terms, ), ), ); $comics_query = new WP_Query($comics_args); ?> have_posts()): ?>

    have_posts()): $comics_query->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. */ set_query_var('latest_collection_id', $latest_collection_id); set_query_var('show_comic_number', false); get_template_part('template-parts/content', 'comiclistitem'); endwhile; ?>
'?comics_paged=%#%#comics-section', 'current' => $comics_paged, 'total' => $comics_query->max_num_pages, 'prev_text' => wp_kses(__('', 'toocheke'), array('i' => array('class' => array()))), 'next_text' => wp_kses(__('', 'toocheke'), array('i' => array('class' => array()))), 'add_args' => array('blog_paged' => $blog_paged), )); if ($comic_links): ?>
'collections', 'parent' => $latest_collection_id, 'orderby' => 'meta_value_num', 'order' => $comic_order, 'meta_query' => array( array( 'key' => 'collection-order', 'type' => 'NUMERIC', )), 'show_count' => 0, 'number' => 6, )); if ($chapters_list) { ?>

1, 'post_type' => 'comic', "tax_query" => array( array( 'taxonomy' => "collections", // use the $tax you define at the top of your script 'field' => 'term_id', 'terms' => $chapter->term_id, // use the current term in your foreach loop ), ), 'no_found_rows' => true, 'update_post_meta_cache' => false, 'update_post_term_cache' => false, ); $first_comic_query = new WP_Query($args); // The Loop while ($first_comic_query->have_posts()): $first_comic_query->the_post(); $link_to_first_comic = add_query_arg('col', $latest_collection_id, get_post_permalink()); // Display the image of the first post in category endwhile; printf(wp_kses_data('%1$s'), ''; } // Reset Post Data wp_reset_postdata(); ?>
'collections', 'parent' => 0, 'orderby' => 'meta_value_num', 'order' => $comic_order, 'meta_query' => array( array( 'key' => 'collection-order', 'type' => 'NUMERIC', )), 'show_count' => 0, 'number' => 6, )); if ($collections_list) { ?>

1, 'post_type' => 'comic', "tax_query" => array( array( 'taxonomy' => "collections", // use the $tax you define at the top of your script 'field' => 'term_id', 'terms' => $collection->term_id, // use the current term in your foreach loop ), ), 'no_found_rows' => true, 'update_post_meta_cache' => false, 'update_post_term_cache' => false, ); $first_comic_query = new WP_Query($args); // The Loop while ($first_comic_query->have_posts()): $first_comic_query->the_post(); $link_to_first_comic = add_query_arg('col', $latest_collection_id, get_post_permalink()); // Display the image of the first post in category endwhile; printf(wp_kses_data('%1$s'), ''; } // Reset Post Data wp_reset_postdata(); ?>