amarinediary / WordPress-simple-URL-based-breadcrumb

🍞 A non-invasive WordPress unofficial plugin, minimalist and SEO friendly. both lightweight and lightning fast, adding URL based breadcrumb support. Plug-and-play, with no required configuration.
https://stackoverflow.com/a/67453887/3645650
Creative Commons Zero v1.0 Universal
27 stars 5 forks source link

WooCommerce #12

Closed joomapp closed 1 year ago

joomapp commented 1 year ago

Hi there,

Thanks for the great work. I installed and use it but face the issue that WooCommerce is not compatible here. As you select the bread based on Taxonomie; The Url structure is:

Home > Product > Product Description

Although it should be:

Home > Categorie Archive > Product Description

Joep

amarinediary commented 1 year ago

Hi @joomapp, glad you like it.

I'm not sure I understand the issue. Is there a missmatch between the url and the output ?

Try to be as precise as possible, I need to be able to reproduce the issue on my end.

FYI, you can intercept the crumbs array to modify/update a crumb. See Intercepting the crumbs array.

<?php

$crumbs = get_the_crumbs();

array_walk( $crumbs, function( &$value, $key ) {

    if ( 'something' == $value['slug'] ) {

        $value['slug'] = 'somethingelse';

    };

} );

$ingredients = array(
    'crumbs' => $crumbs,
);

the_bread( $ingredients );
amarinediary commented 1 year ago

No news means good news, I'm closing this one ! For future reference: Opening an issue and not participating might be considered rude.