name || $post_type_obj->has_archive ) { $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ' - '; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); // $time_string = '' . $time_string . ''; } $author_string = ''; // Show author only if it is not disabled in Customizer and the post type supports it. if ( get_theme_mod( 'show_author', true ) && post_type_supports( $post_type_obj->name, 'author' ) ) { $author_string = sprintf( '%2$s', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); } $parent_string = ''; // Show parent post only if available and if the post type is 'attachment'. if ( ! empty( $post->post_parent ) && 'attachment' === get_post_type() ) { $parent_string = sprintf( '%2$s', esc_url( get_permalink( $post->post_parent ) ), esc_html( get_the_title( $post->post_parent ) ) ); } ?>
true, ) ); $category_taxonomy = null; foreach ( $taxonomies as $taxonomy ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $category_taxonomy = ( strpos( $taxonomy->name, 'ategory' ) || 'portfolio-item' === $taxonomy->name ) ? $taxonomy : $category_taxonomy; } if ( $category_taxonomy ) { // Show terms for all categories associated with the post. /* translators: separator between taxonomy terms */ $separator = _x( ', ', 'list item separator', 'ampy' ); $class = 'category-links term-links'; $list = get_the_term_list( $post->ID, $category_taxonomy->name, '', esc_html( $separator ), '' ); /* translators: %s: list of taxonomy terms */ $placeholder_text = __( ' in %s', 'ampy' ); if ( ! empty( $list ) ) { ?>