Support » Fixing WordPress » How to remove date, author and category from posts in Hatch template?

  • Hi..

    It is already asked some times on the forum, but I can find out how it works for the Hatch theme to remove the date, author and category of posts. I don’t have experience in scripting, so I want to ask if this it the part that make the date, author and category appear?
    If it is, can lines be deleted or should they be rewritten in another way?

    <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'link_to_post' => false, 'image_class' => 'featured', 'attachment' => false, 'width' => 640, 'height' => 360, 'default_image' => get_template_directory_uri() . '/images/single_image_placeholder.png' ) ); ?>
    							<div class="post-aside">								
    
    								<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
    
    								<?php echo apply_atomic_shortcode( 'byline_date', '<div class="byline byline-date">' . __( '[entry-published before="Date: "]', 'hatch' ) . '</div>' ); ?>
    
    								<?php echo apply_atomic_shortcode( 'byline_author', '<div class="byline byline-author">' . __( '[entry-author before="Author: "]', 'hatch' ) . '</div>' ); ?>
    
    								<?php echo apply_atomic_shortcode( 'byline_category', '<div class="byline byline-ategory">' . __( 'Category: [entry-terms taxonomy="category"]', 'hatch' ) . '</div>' ); ?>
    
    								<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="post_tag" before="Tags: "]', 'hatch' ) . '</div>' ); ?>
    
    								<?php echo apply_atomic_shortcode( 'byline_edit', '<div class="byline byline-edit">' . __( '[entry-edit-link]', 'hatch' ) . '</div>' ); ?>
    
    								<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
    
    							</div>
    
    							<div class="entry-content">
    								<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'hatch' ) ); ?>
    								<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'hatch' ), 'after' => '</p>' ) ); ?>
    							</div><!-- .entry-content -->

    I hope one of you can help me!

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

  • The topic ‘How to remove date, author and category from posts in Hatch template?’ is closed to new replies.