Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions lib/templates/structure/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@
'itemscope' => 'itemscope',
'itemtype' => 'https://schema.org/CreativeWork',
);

// Blog specifc attributes.
if ( 'post' === get_post_type() ) {

$article_attributes['itemtype'] = 'https://schema.org/BlogPosting';

// Only add to blogPost attribute to the main query.
if ( is_main_query() && ! is_search() ) {
$article_attributes['itemprop'] = 'blogPost';
}
}
// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound

beans_open_markup_e( 'beans_post', 'article', $article_attributes );
Expand All @@ -63,7 +52,7 @@

beans_close_markup_e( 'beans_post_header', 'header' );

beans_open_markup_e( 'beans_post_body', 'div', array( 'itemprop' => 'articleBody' ) );
beans_open_markup_e( 'beans_post_body', 'div', array( 'itemprop' => 'text' ) );

/**
* Fires in the post body.
Expand Down