Hello Bol,
where (which page) do you have this error?
Thread Starter
bolsta
(@bolsta)
Hi D4z. I have all three errors on the home page and i have
missing entry-title
missing updated
on about 10 others
Regards Bol
Thread Starter
bolsta
(@bolsta)
Hi D4z. So i am not sure the best way to fix these errors. Do you know what I can do?
Thanks mate.
Kind Regards
Bol
http://www.bamb-u.com
Thread Starter
bolsta
(@bolsta)
Hello Customizr’s. I have found a solution (I think).
I found this code
//mod content
function hatom_mod_post_content ($content) {
if ( in_the_loop() && !is_page() ) {
$content = ‘<span class=”entry-content”>’.$content.'</span>’;
}
return $content;
}
add_filter( ‘the_content’, ‘hatom_mod_post_content’);
//add hatom data
function add_mod_hatom_data($content) {
$t = get_the_modified_time(‘F jS, Y’);
$author = get_the_author();
$title = get_the_title();
if ( is_single() || is_page()) {
$content .= ‘<div class=”hatom-extra”><span class=”entry-title”>’.$title.'</span> was last modified: <span class=”updated”> ‘.$t.'</span> by <span class=”author vcard”><span class=”fn”>’.$author.'</span></span></div>’;
}
return $content;
}
add_filter(‘the_content’, ‘add_mod_hatom_data’);
It seems to have solved the issues. I copied it into my Child Theme function.php
Regards
Bol