Schema.org –> WebPage – 5 errors


Hello, the Google markup testering tool shows some errors. There are 5 missing values for "blogPost"

5 error

You can test the Beans demo here: https://search.google.com/structured-data/testing-tool/#url=http%3A%2F%2Fdemo.getbeans.io%2Fbeans-looks-beautiful-on-all-devices%2F

I let WordPress handel the image sizes:

// Let WordPress handle the image sizes
add_filter( 'beans_post_image_edit', '__return_false' );

In that case, the image markup is completely missing. See: https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fj0e.org%2Fwordpress-ios-app-neue-version-6-3-mit-verbesserter-verwaltung%2F

Jochen


Hey Jochen,

Thanks for reporting it, I have added it to the todo list and it should be fixed in 1.3.2 🙂

Cheers,



oh! i have the same problem !! This temporary solution for missing dateModified:

  1. Open folder: Beans/lib/templates/fragments
  2. Open 2 file:
    • post-shortcodes.php

Paste the code below in to flie post-shortcodes.php

beans_add_smart_action( 'beans_post_meta_dateModified', 'beans_post_meta_dateModified_shortcode' );

/**
 * Echo post meta date shortcode.
 *
 * @since 1.0.0
 */
function beans_post_meta_dateModified_shortcode() {

  echo beans_output( 'beans_post_meta_dateModified_prefix', __( '<i class="uk-icon-refresh"></i>' . ' ', 'tm-beans' ) );

  echo beans_open_markup( 'beans_post_meta_dateModified', 'time', array(
    'datetime' => get_the_modified_date( 'c' ),
   'itemprop' => 'dateModified',
 ) );

  the_modified_date('d/m/Y', '<div class="the-modified-date">', '</div>');

  echo beans_close_markup( 'beans_post_meta_dateModified', 'time' );

}

Next, open file post.php and find with keywords(CTRL + F) "function beans_post_meta()" you see code in this function:

$meta_items = apply_filters( 'beans_post_meta_items', array(
 'date' => 10,
 'author' => 20,
 'dateModified' => 30,
 'publisher'=>40
) );

asort( $meta_items );

foreach ( $meta_items as $meta => $priority ) {

 if ( !$content = beans_render_function( 'do_action', "beans_post_meta_$meta" ) )
    continue;

 echo beans_open_markup( "beans_post_meta_item[_{$meta}]", 'li' );

   echo beans_output( "beans_post_meta_item_{$meta}_text", $content ) ;

  echo beans_close_markup( "beans_post_meta_item[_{$meta}]", 'li' );
}

i have just add '"publisher'=>40" !!! and add 1 line "echo beans_close_markup( "beans_post_metaitem[{$meta}]", 'li' );"

you can go to my website: http://hiepphuocexpress.com/van-chuyen-gui-hang-di-duc-viet-nam.html and see the meta post line under headline 1.



Hello everybody,

I've got a little problem with the WPFooter data markup.

I just add the id in Beans: footer-partial.php (lib/templates/structure/footer-partial.php)

Like this:

'tm-footer uk-block', 'role' => 'contentinfo', 'itemscope' => 'itemscope', 'itemtype' => 'http://schema.org/WPFooter', 'id' => 'footer' ) );

That's ok now.... https://wordpress.agilistic.fr

Vincent

Write a reply

Login or register to write a reply, it's free!