Set up 404 page | WordPress.org

Is it possible to load the 404 page whenever/reason you want?

The thing is that I have a custom field and WP doesn’t use it by default to check if that taxonomy is supposed to be open or not… so I am checking with PHP that field and if it is not “Active” I am redirecting the user to the homepage but I would like to show the 404 page instead of redirect them… is there any function to do that?

  • This topic was modified 1 day, 6 hours ago by Cezar Ayran.



Source link