Hello,
I want to display the date under my post title.
I’ve been using this method: https://theme.co/apex/forums/topic/how-do-i-add-the-publish-date-under-the-title/
But it doesn’t work…
I’m trying to show it on this page:
This page is a custom php template; however, it is using the themeco css method.
Here’s the custom php for this page:
<?php get_header(); ?>
<div class="x-container max width offset">
<div class="<?php x_main_content_class(); ?>" role="main">
<div class="cursive"> <h2 class="change"><?php echo get_cat_name(1026);?></h2></div>
<p><?php echo category_description(1026); ?> </p>
<?php // Display blog posts
$temp = $wp_query; $wp_query= null;
$wp_query = new WP_Query(); $wp_query->query('cat=1026&showposts=4&paged=' . $paged);
while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<?php x_get_view( 'integrity', 'content', 'page' ); ?>
<?php x_get_view( 'global', '_comments-template' ); ?>
<?php endwhile; ?>
<div class="nav-previous alignright"><?php next_posts_link( 'Older posts' ); ?></div>
<div class="nav-next alignleft"><?php previous_posts_link( 'Newer posts' ); ?></div>
</div>
</div>
<?php get_footer(); ?>
As you can see, it’s calling the <?php x_get_view( 'integrity', 'content', 'page' ); ?>
I went through the file x > framework > views > integrity > _content-post-header.php and content-page.php . I tried to add the code < span class ="entry-date" > <?php echo get_the_date(); ?> </ span >
below <h1 class="entry-title"><?php the_title(); ?></h1>
, but that doesn’t seem to display it.
Any ideas?