404 error on second page load for child-pages

I never found the real reason for this issue. However this “bugfix” did solve the issue for me: add_action( ‘template_redirect’, ‘handle_strange_bug’, 10 ); // “Fixes” the strange bug… function handle_strange_bug() { global $post; $post_id = 123; // This is the post that makes problems. /* ===== Start of the bugfix. * * If the $post->ID … Read more