Support » Fixing WordPress » How can I remove "posted on by", "date" and "in"

Viewing 4 replies - 1 through 4 (of 4 total)
  • At the top of The Loop on each template that gets called to display your posts (archive.php, index.php etc) is something like:
    <?php the_time('F j, Y'); ?></span> by <?php the_author_posts_link(); ?>

    Comment that out.

    Hi Rick,

    thanks a lot. I have found that in the archive.php of the Wootique them: Which part should I drop out exactly? I have tried a little bit but without success. Thanks a lot!

    			<?php } elseif (is_day()) { ?>
    			<span class="archive_header"><?php _e( 'Archive', 'woothemes' ); ?> | <?php the_time( get_option( 'date_format' ) ); ?></span>
    			<?php } elseif (is_month()) { ?>
    			<span class="archive_header"><?php _e( 'Archive', 'woothemes' ); ?> | <?php the_time( 'F, Y' ); ?></span>
    			<?php } elseif (is_year()) { ?>
    			<span class="archive_header"><?php _e( 'Archive', 'woothemes' ); ?> | <?php the_time( 'Y' ); ?></span>
    			<?php } elseif (is_author()) { ?>
    			<span class="archive_header"><?php _e( 'Archive by Author', 'woothemes' ); ?></span>
    			<?php } elseif (is_tax()) { ?>
    			<span class="archive_header"><?php echo single_term_title( '', true); ?></span>
    			<div class="term-description">
    				<?php echo term_description(); ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    For this code fragment, it looks like you would take out the time/date by removing | <?php the_time)... ?>

    But I think you need to search through all the templates for the strings “Posted on” and “continue reading” to find the lines you’re talking about. Chances are they appear in multiple places in multiple templates.

    And, yes, I do know what my name means … 😉

    Hi Rick,

    thanks for your help. I Will check that;-) Nice name indeed:-))
    Have you got German ancestors? Grretings, Jochen

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I remove "posted on by", "date" and "in"’ is closed to new replies.