Status
Not open for further replies.
2 comments
This is my .php file:
PHP:
<?php
/**
 * The Template for displaying all single posts.
 *
 * @package Pachyderm
 * @since Pachyderm 1.0
 */
$format = get_post_format();
if ( 'image' == $format ||
     'video' == $format ||
     'aside' == $format ||
     'link' == $format ||
     'quote' == $format ||
     'status' == $format )
    $format = get_post_format();
else
    $format = 'single';

get_header(); ?>

    <div id="primary" class="content-area">

        <div id="content" class="site-content" role="main">

        <?php while ( have_posts() ) : the_post(); ?>

            <?php get_template_part( 'content', $format ); ?>

            <?php
                // If comments are open or we have at least one comment, load up the comment template
                if ( comments_open() || '0' != get_comments_number() )
                    comments_template();
            ?>

        <?php endwhile; // end of the loop. ?>

        </div><!-- #content -->
    </div><!-- #primary -->

<?php get_footer(); ?>

I have tried in many places adding this line of code:
PHP:
<?php the_date('F j, Y'); ?>
but never displays under the post title.

I seen if the type of post is set to a standard (not image) the date is displayed under the title :)

I would only do: near the date appear category post. In which file I need change the code?
 
Last edited:
Status
Not open for further replies.
Back
Top