You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using this package for the first time. I successfully managed to create a bredcrumb, but I need to show also associated taxonomy term between page and post title.
app/View/Components/Breadcrumb.php
<?php
namespace App\View\Components;
use Illuminate\View\Component;
use Log1x\Crumb\Facades\Crumb;
class Breadcrumb extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}
public function items()
{
return Crumb::build()->toArray();
}
/**
* Get the view / contents that represent the component.
*/
public function render()
{
return $this->view('components.breadcrumb');
}
}
Hi, I'm using this package for the first time. I successfully managed to create a bredcrumb, but I need to show also associated taxonomy term between page and post title.
and this is my blade
The result is Home -> Custom Post Type -> Post:
What I expect is Home -> Custom Post Type -> Taxonomy Term (if post have one) -> Post.
How to deal with this?
The text was updated successfully, but these errors were encountered: