The original solution I presented above doesn’t correctly add the modified date for structured data purposes – and should be ignored. A slight rewrite of the kippis posted on function is needed (see below):
if (!function_exists('kippis_posted_on')) {
function kippis_posted_on()
{
global $kippis_options;
$show_author = $kippis_options['kippis_posts_author_enable'] == 'on';
$show_date = $kippis_options['kippis_posts_date_enable' ] == 'on';
if ($show_author || $show_date) {
printf('<span class="sep">%1$s</span>'
. '<a href="%2$s" title="%3$s" rel="bookmark"><time class="entry-date" datetime="%4$s" pubdate>%5$s</time></a> (<em class="entry-date updated">modified %10$s</em>)'
. '<span class="by-author"> <span class="sep">%6$s</span> <span class="vcard author">'
. '<a class="url fn n" href="%7$s" title="%8$s" rel="author">%9$s</a>'
. '</span></span>'
,($show_date ? __('Posted on','kippis') . ' ' : '')
,($show_date ? esc_url (get_permalink()) : '')
,($show_date ? esc_attr(get_the_time()) : '')
,($show_date ? esc_attr(get_the_date('c')) : '')
,($show_date ? esc_html(get_the_date()) : '')
,($show_author ? ' ' . __('by','kippis') .' ' : '')
,($show_author ? esc_url (get_author_posts_url(get_the_author_meta('ID'))) : '')
,($show_author ? sprintf (esc_attr__('View all posts by %s','kippis'),get_the_author()) : '')
,($show_author ? esc_html(get_the_author()) : '')
,($show_date ? esc_html(get_the_modified_date()) : '')
);
You will still need to modify the end of the content.php file as below:
<?php if ('page' == get_post_type()) : ?>
<div class="entry-meta">
<?php kippis_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>