WordPress.org

Ready to get started?Download WordPress

Forums

How can I remove "posted on by", "date" and "in" (5 posts)

  1. jaymesbond
    Member
    Posted 1 year ago #

  2. rickschwein
    Member
    Posted 1 year ago #

    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.

  3. jaymesbond
    Member
    Posted 1 year ago #

    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!

    </div>
    			<?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(); ?>
    
    			</div>

    [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.]

  4. rickschwein
    Member
    Posted 1 year ago #

    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 ... ;-)

  5. jaymesbond
    Member
    Posted 1 year ago #

    Hi Rick,

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

Topic Closed

This topic has been closed to new replies.

About this Topic