I am using Yoasts WordPress SEO and I have set up my breadcrumbs. The problem is that my page setup is s follows.
/
/about
/blog - On this page I query the posts and display them. The posts themselves have nothing before them in the URL.
The breadcrumb shows as follows.
Home / Category / Page Title
I want it to show like this.
Home/ Blog / Category / Page Title
Is this possible?
Here’s the general principle of what you need to do:
wpseo_breadcrumb_links
orwp_seo_get_bc_ancestors
API filters.$links
array, usingarray_splice
.Place this in your theme’s
functions.php
:Note: You may need to update the code specific to your site or needs, but the general idea stays the same.