Skip to content

Instantly share code, notes, and snippets.

@samikeijonen
Created January 6, 2016 19:15
Show Gist options
  • Select an option

  • Save samikeijonen/f73bb09eea2726abca94 to your computer and use it in GitHub Desktop.

Select an option

Save samikeijonen/f73bb09eea2726abca94 to your computer and use it in GitHub Desktop.
Entry meta for Kuorinka theme without entry date
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php
/* Set up byline. */
printf( '<span class="byline"><span class="entry-author" ' . hybrid_get_attr( 'entry-author' ) . '><span class="screen-reader-text">%1$s </span><a class="entry-author-link" href="%2$s" rel="author" itemprop="url"><span itemprop="name">%3$s</span></a></span></span>',
esc_html_x( 'Author', 'Used before post author name.', 'kuorinka' ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
get_the_author()
);
?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( false, false, false, 'comments-link', false ); ?></span>
<?php endif; ?>
</div><!-- .entry-meta -->
<?php endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment