wedocs icon indicating copy to clipboard operation
wedocs copied to clipboard

Wrong breadcrumbs for posts without parents.

Open aabouzaid opened this issue 9 years ago • 2 comments

Hello, The breadcrumbs of posts without parents always get "Docs" in breadcrumbs, and actually there is no page is called "Docs" at all (so it's returns 404).

How it does look like: old_single_page_wedocs_theme_small

How it should be: new_single_page_wedocs_theme_small

I believe this related to that part in "lib/custom.php" (and yeah, I'm using "develop" branch):

echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a>';
if ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $before . get_the_title() . $after;

And should be replaced with:

if ($showCurrent == 1) echo ' ' . $before . get_the_title() . $after;

If I get it right and this is not intended, I will make a PR. Thanks a lot.

aabouzaid avatar Jun 01 '16 09:06 aabouzaid

hi,

thank you for this. this is fixed my problem.

if you have any idea about this issue, can you share ? https://github.com/tareq1988/wedocs-plugin/issues/23

thank you in advance.

ufukayyildiz avatar Jan 30 '17 11:01 ufukayyildiz

hi again,

solution is here ; tareq1988/wedocs-plugin#24

thanks to @HenchmenMedia

ufukayyildiz avatar Jan 30 '17 21:01 ufukayyildiz