Removing dates from posts
-
Hi all,
I have been away from this for a while and am still a newbie.
Below is my single.php file. Can someone tell me how to comment out the calls to put dates on all of the blog posts? Do I need to edit all of the files below before it will work on the blog posts?Thanks so much!
index.php
archive.php
category.php
single.php
page.php<?php get_header(); ?> <div id="wrapper1"> <div id="wrapper2"> <div id="container"> <?php get_sidebar(); ?> <?php get_template_part( 'nav' ) ; // left column navigation ?> <div id="page_content"> <!--single--> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> <div class="contentdate"> <h3><?php the_time('M y'); ?></h3> <h4><?php the_time('j'); ?></h4> </div> <div class="contenttitle"> <h1><a>" rel="bookmark"><?php the_title('','',0) ? the_title() : _e('Untitled Post', 'tpSunrise'); ?></a></h1> <p>Posted by <?php the_author(); ?> on <?php the_time( get_option('date_format') ); ?> Posted in <?php the_category(' ? ') ?>?<?php the_tags(' | ' . __('Tagged With: ', 'tpSunrise'), ', ', ''); ?> <?php if ( comments_open() ) { ?> | <?php comments_popup_link( __('No Comments yet, please leave one', 'tpSunrise'), __('1 Comment', 'tpSunrise'), '% ' . __('Comments', 'tpSunrise'), __('Comments are closed', 'tpSunrise')); } elseif (get_comments_number() > 0) { //don't show comment link if there are none & comments are off ?> | <?php comments_popup_link( __('No Comments', 'tpSunrise'), __('1 Comment', 'tpSunrise'), '% ' . __('Comments', 'tpSunrise'), '', __('', 'tpSunrise')); } ?></p> </div> <div class="post-content"> <?php if ( 'gallery' == get_post_format( get_the_ID() ) ) : $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); ?> <figure class="gallery-thumb"> <a>"><?php echo $image_img_tag; ?></a> </figure><!-- .gallery-thumb --> <p><em><?php printf( _n( 'This gallery contains <a>%2$s image</a>.', 'This gallery contains <a>%2$s images</a>.', $total_images, 'tpSunrise' ), 'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'tpSunrise' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', number_format_i18n( $total_images ) ); ?></em></p> <?php endif; ?> <?php endif; ?> <?php the_content(__('Read more', 'tpSunrise')); ?> </div> <div class="postspace"> <?php trackback_rdf(); ?> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.', 'tpSunrise'); ?></p><?php endif; ?> </div> <div class="page-link"> <?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=Page %'); ?> </div> <div class="edit-link"> <?php edit_post_link( __('Edit', 'tpSunrise'), '<p>', '</p>' ); ?> </div> <div class="pagenav"> <?php previous_post_link('<span class="center">? %link </span>'); ?> <?php next_post_link('<span class="center"> %link ?</span>'); ?> </div> </div> <?php comments_template(); // Get wp-comments.php template ?> </div> <!-- page content --> </div> <!-- container --> <?php get_footer(); ?>
[Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum’s parser.]
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Removing dates from posts’ is closed to new replies.