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
http://museumthemes.com/core/parent-page/child-page-1/
Reported in: https://wordpress.org/support/topic/breadcrumbs-bug
Relevant code (like 938 functions.php):
while ( $parent_id ) { $page = get_post($parent_id); $breadcrumbs[] = '<li><span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_permalink($page->ID) . '">' . get_the_title( $page->ID ) . '</a></span></li>'; }
The text was updated successfully, but these errors were encountered:
This was submitted by Eric Deiter via email:
//Iterate back to root while ($parent_id != 0) { $page = get_post($parent_id); $breadcrumbs[] = ‘<li><span typeof=“v:Breadcrumb”><a rel=“v:url” property=“v:title” href=“’ . get_permalink($page->ID) . ‘”>’ . get_the_title( $page->ID ) . ‘</a></span></li>’; //Get next parent, walk backwards $parent_id = $page->post_parent; } $breadcrumbs = array_reverse( $breadcrumbs );
Needs to be tested and patched
Sorry, something went wrong.
fixes breadcrumb infinite loop. Props Eric Deiter for the fix and @pe…
a8dffb4
…terthomson for reporting it. closes #74
jazzsequence
No branches or pull requests
http://museumthemes.com/core/parent-page/child-page-1/
Reported in: https://wordpress.org/support/topic/breadcrumbs-bug
Relevant code (like 938 functions.php):
The text was updated successfully, but these errors were encountered: