I’ve Polylang Pro enabled, so the compatibility mode gets chosen automatically. It doesn’t work however, I still see the theme’s native
404.phptemplate (nothing fancy, custom theme based on twentysixteen).
$postsis never empty, it always contains the two blog posts I have on the site. That seems very strange to me, but debugging it in
class-wp-query.phpturned out to be really complex.
Manually switching to
STDmode does make it work however.
I propose we either find out why my installation still fills up
$postseven when 404ing, or you still let the user switch between STD/CMP mode manually, even if Polylang was detected.
- The topic ‘Still displaying the theme’s 404 page with Polylang’ is closed to new replies.