How to Put date and category in the same line?
-
Hi
I will try to edit my theme then date and category are in the same line.
Are there som one there can help to fix it?<?php /** * @package Danielle */ ?> <?php tha_entry_before(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php tha_entry_top(); ?> <header class="entry-header"> <?php if ( is_single() ) : the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( danielle_get_link_url() ) ), '</a></h2>' ); endif; ?> <?php if ( 'post' === get_post_type() ) : ?> <div class="entry-meta"> <?php danielle_posted_on(); ?> </div><!-- .entry-meta --> <?php endif; ?> </header><!-- .entry-header --> <?php if ( is_search() ) : // Display Excerpts for Search pages. ?> <div class="entry-summary"> <p><?php echo wp_trim_words( get_the_excerpt(), 35, '…' ); ?></p> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php if ( 'hide_on_blog_and_single_posts' != get_theme_mod( 'featured_image', 'show' ) ) : ?> <?php danielle_post_thumbnail(); ?> <?php endif; ?> <?php if ( 'summary' == get_theme_mod( 'post_content', 'full-post' ) && 'quote' != get_post_format() && 'status' != get_post_format() ) : ?> <p><?php echo wp_trim_words( get_the_excerpt(), 35, '…' ); ?></p> <p><a href="<?php echo esc_url( get_permalink() ); ?>" class="more-link"><?php esc_html_e( 'Read More', 'danielle' ); ?></a></p> <?php else : ?> <?php the_content( esc_html__( 'Read More', 'danielle' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'danielle' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'danielle' ) . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>', ) ); ?> <?php endif; ?> </div><!-- .entry-content --> <?php endif; ?> <?php if ( 'post' === get_post_type() ) : // Hide category and tag text for pages on Search. ?> <footer class="entry-footer"> <?php if ( ! post_password_required() && comments_open() ) : ?> <span class="comments-link"><?php comments_popup_link( esc_html__( 'Write a comment', 'danielle' ), esc_html__( '1 Comment', 'danielle' ), esc_html__( '% Comments', 'danielle' ) ); ?></span> <?php endif; ?> <?php /* Translators: used between list items, there is a space after the comma. */ $category_list = get_the_category_list( esc_html__( ', ', 'danielle' ) ); if ( danielle_categorized_blog() ) { // This blog has loads of categories so we should probably display them here. $meta_text = esc_html__( 'Posted in %1$s', 'danielle' ); } else { $meta_text = ''; } // end check for categories on this blog. if ( $meta_text ) { echo '<span class="entry-cats">'; printf( $meta_text, $category_list, esc_url( get_permalink() ) ); echo '</span>'; } ?> </footer><!-- .entry-footer --> <?php endif; // End if 'post' === get_post_type() ?> <?php tha_entry_bottom(); ?> </article><!-- #post-<?php the_ID(); ?> --> <?php tha_entry_after(); ?>
- The topic ‘How to Put date and category in the same line?’ is closed to new replies.