Still displaying the theme’s 404 page with Polylang
-
Hi Peter,
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.php
template (nothing fancy, custom theme based on twentysixteen).The reason:
$posts
is never empty, it always contains the two blog posts I have on the site. That seems very strange to me, but debugging it inclass-wp-query.php
turned out to be really complex.Manually switching to
STD
mode does make it work however.I propose we either find out why my installation still fills up
$posts
even 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.