post_types; // archive related default values $related_taxonomies = array(); $public_taxonomies = get_taxonomies(array('public' => true )); $post_ids = get_posts(array( 'post_type' => $post_type, 'posts_per_page' => -1, 'fields' => 'ids', // return an array of ids )); // Default more button text $more_text = __('Weiterlesen', 'sandbox'); $more_text_label = ''; // used to use with printf $use_tax_more_text = false; // archive specificas based on archive type if ( is_tax() || is_tag() || is_category() ) { $related_taxonomies = array($term->taxonomy['WP_Taxonomy']->name); $meta_args = array('date', 'author'); if ( $term->taxonomy['WP_Taxonomy']->name === 'typ' ) { $meta_args = array(); } // More text button, %s gets replaced by // $more_text_label which will be $post_type_object->labels->singular_name // English default $more_text = __('View', 'sandbox') . ' %s'; $use_tax_more_text = true; } else if ( is_post_type_archive() ) { $related_taxonomies = array_intersect(get_object_taxonomies($post_type), $public_taxonomies); // dont display post thumbnails in archives // manual overwrite, requested by client // $term->has_thumbnail = false; // echo ''; // echo 'c: ', var_dump($related_taxonomies); } $header_style = ''; if ( $term->has_thumbnail ) { if ( is_post_type_archive() ) { $term_thumbnail = array($term->thumbnail); } else { $term_thumbnail = wp_get_attachment_image_src($term->thumbnail_id, 'sandbox-hero'); } $header_style = ' style="background-image:url(' . $term_thumbnail[0] . ');"'; } ?>
>

title; ?>

has_description ) { ?>
description; ?>
byline ?> */ ?> ' . $more_text . ''; // more class attribute if ( $more_class !== '' ) { $more_class = ' class="' . $more_class . '"'; } ?>

:-(