Incorrect Date on Posts and Double images on Posts – Please help – Urgent!!
Just tested theme with a post and the date showing seems to be wrong. Can this be rectified? I also noticed that both featured image and image thumbnail are showing on posts. How can i disable thumbnail as my previous theme only showed thumbs and not featured images on all my posts?Please help.
Hi Ahmed,
Please find my answers below:
1. The first question: “Just tested theme with a post and the date showing seems to be wrong. Can this be rectified?”
>> Please go to Dashboard > Appearance > Editor. Then click on “Theme Functions” (functions.php) on the right menu
Find
$cmt_date = $from;
Replace With
global $post;
if( $post ) {
$from = $post->post_date;
}
2. The second question: “both featured image and image thumbnail are showing on posts. How can i disable thumbnail as my previous theme only showed thumbs and not featured images on all my posts?”
>>> If you want to remove the Featured image on single post, please go to Dashboard > Appearance > Editor. Click on “content-single.php” on the right menu
Then remove those codes:
<?php if( has_post_thumbnail() && ! has_post_format('video') && ! has_post_format('audio') && ! has_post_format('gallery') ) : ?>
<div class="entry-thumbnail">
<?php the_post_thumbnail(''); ?>
</div>
<?php endif; ?>
Hope they answer your questions
Regards,
Jackie
Please login or Register to submit your answer