Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter rusnarod

    (@rusnarod)

    anyone?

    See if the following video helps.

    https://educhalk.org/blog/?p=170

    Hi,

    Open index.php file of your theme and remove this code:

    <?php the_date();

    Thanks,

    Shane G.

    Thread Starter rusnarod

    (@rusnarod)

    I think i already did that, and it didnt work. Here is what my index looks like right now.

    <div id="content" class="narrowcolumn" role="main">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
    
    				<div class="entry">
    					<?php the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')) ?></div>
    			<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')) ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
    		<p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'kubrick'); ?></p>
    		<?php get_search_form(); ?>
    
    	<?php endif; ?>
    
    	</div>

    Thread Starter rusnarod

    (@rusnarod)

    So what should i do now? It seems that deleting <?php the_date(); didnt help. The date stamp (as you can see) is still there.

    That’s because you deleted it from your index.php file and you are showing categories on your site. You need to delete it from the archive.php file…it’s around line 40 in that file.

    Thread Starter rusnarod

    (@rusnarod)

    Thanks a lot man! You were right. Once i removed it from archive.php it went away!

    Thanks again!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove date from posts’ is closed to new replies.