WordPress.org

Ready to get started?Download WordPress

Forums

I need help changing the date format (2 posts)

  1. Mettemys
    Member
    Posted 1 year ago #

    Hi

    I am using the theme Manifest and I'm having trouble changing the date format. I want it to be 22/06/2013. I've read on the forums that you change the code into <?php the_time('d/m/Y') ?>, but I think the code in this theme is more complicated than that. I've also changed the format in general settings, but that doesn't work. Please help me! Here is the code for the single.php:

    <?php get_header(); ?>
    
    <div id="coreContent">
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
          <div class="post single hentry">
            <div class="postContent">
              <h3 class="entry-title"><?php the_title(); ?></h3>
              <h4 class="vcard author">by <span class="fn"><?php the_author(); ?></span></h4>
              <div class="entry-content">
                  <?php the_content(); ?>
              </div>
            </div>
            <div class="postMeta">
             <?php
              $arc_year = get_the_time('Y');
              $arc_month = get_the_time('m');
              $arc_day = get_the_time('d');
              ?>
    
              <div class="postDate"><span>Published:</span> <abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><a href="<?php echo get_day_link("$arc_year", "$arc_month",
              "$arc_day"); ?>"><?php the_time('F j,Y'); ?></abbr></div>
            	<div class="categories"><span>Filed Under:</span> <?php the_category(', '); ?></div>
            	<?php the_tags('<span>Tags:</span> ', ' : ', ''); ?>
    
            </div>
          </div>
    
          <?php
          /*
          <div class="googleAd">
    
            <!-- You Ad Code Here -->
    
          </div>
          */
          ?>
    
    	<?php comments_template(); ?>
    
      <div class="pageNav">
        <div class="prev"><?php previous_post_link('%link', '« Previous Post'); ?></div>
        <div class="next"><?php next_post_link('%link', 'Next Post »') ?></div>
      </div>
    
    	<?php endwhile; else: ?>
    
    		<p>Sorry, no posts matched your criteria.</p>
    
    <?php endif; ?>
    
    </div>
    
    <?php get_footer(); ?>
  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Where did you download this theme from?

Topic Closed

This topic has been closed to new replies.

About this Topic