Great thanks!
I gave it a shot, using bcn_display_list( false, true, false, true ) since it takes the same parameters as bcn_display but I still had to add $wp_query->is_singular = true; so it behaves as single post for each result:
global $wp_query;
// backup.
$old_singular_value = $wp_query->is_singular;
// change.
$wp_query->is_singular = true;
if ( function_exists( 'bcn_display_list' ) ) :
?>
<nav class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/" aria-label="<?php esc_attr_e( 'breadcrumb' ); ?>">
<ol class="breadcrumb mb-1 small">
<?php bcn_display_list( false, true, false, true ); ?>
</ol>
</nav>
<?php
endif;
// restore.
$wp_query->is_singular = $old_singular_value;
Also for anyone else wondering you then have to edit the search template in the plugin config to something like this:
<span property="itemListElement" typeof="ListItem"><a href="%link%"><span property="name">%htitle%</span></a><meta property="position" content="%position%"></span>
<span class="%type%">%htitle%</span>
-
This reply was modified 5 years, 2 months ago by Lukasz.
-
This reply was modified 5 years, 2 months ago by Lukasz.