We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breadcrumb item's position meta is coming in reverse order. It gets reversed after the home & docs item.
https://github.com/tareq1988/wedocs-plugin/blob/81c8f74eb660d5030c5d9a5d5c31d310cb3581ae/includes/functions.php#L106-L124
<ol class="wedocs-breadcrumb" itemscope="" itemtype="http://schema.org/BreadcrumbList"> <li><i class="wedocs-icon wedocs-icon-home"></i></li> <li itemprop="itemListElement" ...> <a itemprop="item" href="..."> <span itemprop="name">Home</span></a> <meta itemprop="position" content="1"> </li> <li class="delimiter">...</li> <li itemprop="itemListElement" ...> <a itemprop="item" href="..."> <span itemprop="name">Docs</span></a> <meta itemprop="position" content="2"> </li> <li class="delimiter">...</li> <li itemprop="itemListElement" ...> <a itemprop="item" href="..."> <span itemprop="name">Level 1</span></a> <meta itemprop="position" content="5"> </li> <li class="delimiter">...</li> <li itemprop="itemListElement" ...> <a itemprop="item" href="..."> <span itemprop="name">Level 2</span></a> <meta itemprop="position" content="4"> </li> <li class="delimiter">...</li> <li itemprop="itemListElement" ...> <a itemprop="item" href="..."> <span itemprop="name">Level 3</span></a> <meta itemprop="position" content="3"> </li> <li class="delimiter">...</li> <li><span class="current">Test Sub Article</span></li> </ol>
if ( 'docs' == $post->post_type && $post->post_parent ) { $parent_id = $post->post_parent; $pages = []; while ( $parent_id ) { $page = get_post( $parent_id ); $parent_id = $page->post_parent; $pages[] = $page; } $pages = array_reverse( $pages ); foreach ( $pages as $page ) { ++$breadcrumb_position; $html .= wedocs_get_breadcrumb_item( get_the_title( $page->ID ), get_permalink( $page->ID ), $breadcrumb_position ); $html .= ' ' . $args['delimiter'] . ' '; } }
Thanks.
The text was updated successfully, but these errors were encountered:
Could not regenerate
Sorry, something went wrong.
Rubaiyat-E-Mohammad
No branches or pull requests
Issue
Breadcrumb item's position meta is coming in reverse order. It gets reversed after the home & docs item.
Reference
https://github.com/tareq1988/wedocs-plugin/blob/81c8f74eb660d5030c5d9a5d5c31d310cb3581ae/includes/functions.php#L106-L124
Outcome
Possible solution
Thanks.
The text was updated successfully, but these errors were encountered: