Forum Replies Created

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

    (@ryansoldout)

    Thanks for your prompt reply.
    I have ticked that box – they still come up but Im hoping it will flush out soon enough.

    Thread Starter ryansoldout

    (@ryansoldout)

    Yes!!! That’s it.
    CrouchingBruin – you’re my Hero of the Day.

    That’s what I like about these problems, you end up learning so much!

    Thread Starter ryansoldout

    (@ryansoldout)

    For fun here is the entire code of content.php, just in case something weird pops out to you!

    <?php
    /**
     * The default template for displaying content. Used for both single and index/archive/search.
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?>
    
    	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    		<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
    		<div class="featured-post">
    			<?php _e( 'Featured post', 'twentytwelve' ); ?>
    		</div>
    		<?php endif; ?>
    		<header class="entry-header">
    			<?php the_post_thumbnail(); ?>
    			<?php if ( is_single() ) : ?>
    			<h1 class="entry-title"><?php the_title(); ?></h1>
    			<?php else : ?>
    			<h1 class="entry-title">
    				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    			</h1><h2 class="entrydate">Posted on <?php the_date('F j Y'); ?></h2>
    			<?php endif; // is_single() ?>
    		</header><!-- .entry-header -->
    
    		<?php if ( is_search() ) : // Only display Excerpts for Search ?>
    		<div class="entry-summary">
    			<?php the_excerpt(); ?>
    		</div><!-- .entry-summary -->
    		<?php else : ?>
    		<div class="entry-content">
    			<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->
    		<?php endif; ?>
    
    <?php if ( comments_open() ) : ?>
    				<div class="comments-link">
    					<?php comments_popup_link( '<span class="leave-reply">' . __( 'COMMENT', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
    				</div><!-- .comments-link -->
    			<?php endif; // comments_open() ?>
    Thread Starter ryansoldout

    (@ryansoldout)

    Thanks for your help, CrouchingBruin. That all makes complete logical sense to me – that’s why it doesnt make sense to me why it’s not working!

    The format of the post is indeed Standard. I might just go through and add my <h2 class="entrydate">Posted on <?php the_date('F j Y'); ?></h2> to each of the different content-xxxx.php files just in case. It can’t hurt!

    Thread Starter ryansoldout

    (@ryansoldout)

    So I’ve managed to get the date to display on the front page through content.php but when I click on a link to an actual post, the date disappears.

    Which .php file do I edit to put it into an individual post?

    And the bigger question – when I inspect an element through a browser like firefox or chrome, is there a way I can tell which .php file I should be editing?

    Thread Starter ryansoldout

    (@ryansoldout)

    I dont! But I inserted <?php the_date(‘Y-m-d’, ‘<h2>’, ‘</h2>’); ?> as per http://codex.wordpress.org/Function_Reference/the_date and it’s worked! I was trying to put it into a functions.php and index.php and everything but content! Thank you!!!!

    Now I just need to style it to make it look better.

    Any way I can change the text to ‘posted by author on the_date‘?

    Thread Starter ryansoldout

    (@ryansoldout)

    I contacted the ISP and they had to do some Voodoo magic and now it is up.

    Thanks anyways!

Viewing 7 replies - 1 through 7 (of 7 total)