Is anybody aware of breadcrumbs plugin that supports microdata?

Good evening guys.

I am in search for plugin that would allow me to create breadcrumbs
with microdata do not only do I see them on my website, but also on Google.

I downloaded Breadcrumbs NavTX but speed processing due to
It asking for some kind of migration. The website is my client’s so
I try to be careful.

I don’t know if above plugin has microdata support though.

Do you know the kind of plugin that would fit my purpose?

For the Structured Data, You can use This Trick : Link Without using a Plugin…

Goodluck

There’s nothing that mentions breadcrumbs

As i said on my answer, it’s for the Microdata.

For the Breadcrumbs, you can use try this :

Add this code to Functions.php of your Theme :


function the_breadcrumb() {
****global $post;
****echo '<ul id="breadcrumbs">';
****if (!is_home()) {
********echo '<li><a href="';
********echo get_option('home');
********echo '">';
********echo 'Home';
********echo '</a></li><li class="separator"> / </li>';
********if (is_category() || is_single()) {
************echo '<li>';
************the_category(' </li><li class="separator"> / </li><li> ');
************if (is_single()) {
****************echo '</li><li class="separator"> / </li><li>';
****************the_title();
****************echo '</li>';
************}
********} elseif (is_page()) {
************if($post->post_parent){
****************$anc = get_post_ancestors( $post->ID );
****************$title = get_the_title();
****************foreach ( $anc as $ancestor ) {
********************$output = '<li><a href="'.get_permalink($ancestor).'" title="'.get_the_title($ancestor).'">'.get_the_title($ancestor).'</a></li> <li class="separator">/</li>';
****************}
****************echo $output;
****************echo '<strong title="'.$title.'"> '.$title.'</strong>';
************} else {
****************echo '<li><strong> '.get_the_title().'</strong></li>';
************}
********}
****}
****elseif (is_tag()) {single_tag_title();}
****elseif (is_day()) {echo"<li>Archive for "; the_time('F jS, Y'); echo'</li>';}
****elseif (is_month()) {echo"<li>Archive for "; the_time('F, Y'); echo'</li>';}
****elseif (is_year()) {echo"<li>Archive for "; the_time('Y'); echo'</li>';}
****elseif (is_author()) {echo"<li>Author Archive"; echo'</li>';}
****elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {echo "<li>Blog Archives"; echo'</li>';}
****elseif (is_search()) {echo"<li>Search Results"; echo'</li>';}
****echo '</ul>';
}

Then call it on your header.php :

<?php the_breadcrumb(); ?>

You can Tweak the first code the way you want to ! You will have also to play with the CSS in order to suit your theme design…

Goodluck

Im sorry but there is a think which go wrong… the **** are added by default when i past the code…

What do you mean?
Your code was changed automatically?

yes, when i past it, the ************ add automatically…

Seems like it’s replacing tabs/spaces?

So all I need to do is combine first with second
to get breadcrumbs with microdata?

Breadcrumbs will have trails created according
to categories in WordPress? Currently I have pages
that reside deep in URL structure but they don’t
have categories.

Thanks for the info.

As i said, the first one i gave is only for Microdata.

The second one will help you to create a Breadcrumbs… and it’s Work! because i run the same on my Blog.

Goodluck

Do you know by the chance if breadcrumbs by Yoast accomplish what I wanted? The website is
of my client and I hesitate to try code…

If you use Yoast so it’s do the Trick without any issue :slight_smile: You can go ahead with it then…

I would strongly advise to never do dev work on a live site. Try it on your localhost first, then once you’re satisfied try it on the live site.
Even then there’s a chance you’ll need to scramble.

It creates breadcrumbs but putting URL in Google’s structured data tool does not show them.

But what is the chance client will agree for me to download his website for offline development work ? And what is the safe way of doing that if he agrees?

In this case you probably don’t need the exact same database, I think the same theme would likely be enough for you to test with some “lorem ipsum” content.

Off Topic:

@deadmix; what text editor are you pasting from?

You mean I can create new database and update this in wpconfig.php while testing?

For testing the plugins you could have your own database for your localhost WordPress site. You shouldn’t need to worry about Importing or Exporting anything. Simply try the plugins and once you are relatively sure they do what you want install and activate on the live site. If it breaks things there, deactivate and uninstall them and back to square one, if everything looks good, Done.

@Mittineague i past from Notepad++

I tried 3 times, then i pasted from A simple Block Note, same issue…

Off Topic:

How very odd, I use Notepad++ all the time and this is the first I or any I’ve asked have ever seen *******s appear except for the “naughty word” filter