Home › Forums › Support › 404 with category without any post This topic has 5 replies, 2 voices, and was last updated 4 years, 5 months ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts December 15, 2018 at 2:19 am #757280 Hans I use a menu item for categories. Sometimes there are no posts in the category. Instead of a message that there are no posts I get a 404 error. What can I do to avoid this behaviour and to get an appropriate message? December 15, 2018 at 9:54 am #757617 TomLead Developer Lead Developer Hi there, It should use the No Results template by default. So if you add a post to that category now and leave the URL as is, the post shows up? December 15, 2018 at 11:46 am #757702 Hans You are right. It shows the no reult template – sorry. I would prefer to show a message, that there is no result for the query. How can I do so? December 15, 2018 at 6:25 pm #757863 TomLead Developer Lead Developer You can make a copy of this file: https://github.com/tomusborne/generatepress/blob/2.2.1/no-results.php Then upload it to your child theme root directory. Then you can go right into the file and make any needed changes. Let me know if you need more info ๐ December 16, 2018 at 12:14 am #757949 Hans Thank you – this will help! December 16, 2018 at 12:28 pm #758407 TomLead Developer Lead Developer You’re welcome ๐ Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In