-
AuthorPosts
-
February 5th, 2014 at 10:02 #21573Zierleisten Profi
Hey,
Google Webmaster Tools show me mass of errors with the structured data.
Btw. im using the Parabola Theme with newest update.
The error says: Missing required field “updated”
I cant find any solution for this. I know I have to put a updated class in any file, but i dont know in which file nor where and how I should put it in.
I’m not very experienced with coding…
Can someone help me?
February 6th, 2014 at 10:27 #21667Zierleisten ProfiNobody?
February 7th, 2014 at 09:28 #21742Zierleisten ProfiRly looking for help….
February 10th, 2014 at 10:44 #21812Zierleisten ProfiWanna bring it to top again – pls help me!
April 7th, 2014 at 12:47 #24770Peter WardHi Zierleisten,
I have used Tempra a couple of time’s, albeit for personal projects, from cryoutcreations and found it to be very good.
However, I had the exact same issue when using Static Webpages, this is how I fixed mine for Tempra, Parabola may be similar…
Find and edit content-page.php, it is in the themes/tempra/content/ folder.
At this point, I would suggest you take a backup of content-page.php before editing, and ideally you should be applying this on a child theme, rather than the parent as it may disappear after any theme updates.
Find a line that reads <?php the_content(); ?>
Either before or after this, its down to your preference, add the following…
printf( __( ‘<span class=”sep”>Posted on </span><time class=”entry-date updated” datetime=”%3$s” pubdate>%4$s</time><span class=”by-author”> <span class=”sep”> by </span> <span class=”author vcard”>%7$s</span></span>’, ‘tempra’ ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( ‘c’ ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
esc_attr( sprintf( __( ‘View all posts by %s’, ‘tempra’ ), get_the_author() ) ),
get_the_author()
);
?>You may need to change the reference ‘Tempra’ to ‘Parabola’, there are only two.
This will add the ‘updated’ and ‘author’ fields missing.
Test again with Webmaster Tools, all should be good now.
Hope this gets you going.
October 14th, 2014 at 02:47 #27694lalohello , please your help , a have the same error in my blog. i use the last version.
i see in the content page , this :
<?php
/**
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package Cryout Creations
* @subpackage Parabola
*/if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<?php if ( is_front_page() ) { ?>
<h2 class=”entry-title”><?php the_title(); ?></h2>
<?php } else { ?>
<h1 class=”entry-title”><?php the_title(); ?></h1>
<?php } ?><div class=”entry-content”>
<?php the_content(); ?>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, ‘parabola’ ), ‘after’ => ‘</div>’ ) ); ?>
<?php edit_post_link( __( ‘Edit’, ‘parabola’ ), ‘<span class=”edit-link”>’, ‘</span>’ )<time class=”entry-date updated” datetime=”%3$s” pubdate>%4$s</time>; ?>
</div><!– .entry-content –>
</div><!– #post-## –><?php comments_template( ”, true );
endwhile; ?>thank you
regards -
AuthorPosts
The topic ‘Missing required field "updated"’ is closed to new replies.