Thanks for the reply.
The breadcrumb is just a hint that the 404.php page is firing as is from the Posts page (in my case it’s called /articles/). However, they are just inserted in my child theme header.php file via Yaost => yoast_breadcrumb('<p id="breadcrumbs">','</p>');
“Borrowers” is a landing page and the parent page of the “Working with us” page. The menu structure at top uses landing pages for first level, and then the subpages are are referenced to their parent page in order to get the /landing/child/page/ structure.
Permalinks are ‘Post name’ default : https://www.stronghill.com/sample-post/
This happens on any of the 2nd level pages:
https://www.stronghill.com/borrowers/first-time-borrower/xxxx
https://www.stronghill.com/loan-programs/stronghill-commercial/xxxx
https://www.stronghill.com/resources/frequently-asked-questions/xxxxx
etc etc
But not on first level landing pages:
https://www.stronghill.com/loan-programs/xxxx
The ONLY clue I have here is how the post page hierary is setup. The Post page (Articles) is a child page of the Resources page:
https://www.stronghill.com/resources/articles/
However, if you view that page, for some reason the breadcrumbs do NOT show the >> Resources >> level item and instead only show Articles as if it was 1st level even though in the URL it is second level.
Beyond that one clue, I am totally lost in how it’s rewriting 2nd level 404.php to come from the /articles/404.php (and then also using the most recent post to pull the Title into my custom title overlay in functions.php)
function crel_page_header() {
if ( is_front_page() && is_home() ) {
// Default homepage
} elseif ( is_front_page() ) {
// static homepage
} elseif ( is_home() ) {
// blog page
} else {
echo '<div id="content" class="page-wrap pageHeader"><div class="container">';
the_title( '<h1 class="title-post entry-title">', '</h1>' );
echo '</div></div>';
}
}
add_action( 'sydney_after_hero', 'crel_page_header' );
-
This reply was modified 6 years, 10 months ago by
ben8jam.
-
This reply was modified 6 years, 10 months ago by
ben8jam.
-
This reply was modified 6 years, 10 months ago by
ben8jam.