[resolved] 404 page doesn't show up (3 posts)

  1. angad619
    Posted 7 years ago #

    I am facing a very strange problem.
    I am creating a theme for myself.

    When using the default theme, the theme's 404.php page works perfectly. But when I put a 404.php file in the new theme folder, it does not work.

    Also in the index.php, outside the 'if (have_posts())' loop, in the else part, I have a small code that says 'Not Found'. Now if I remove 404.php from my theme folder, I get the 'Not Found' message. But when I write the 404.php file, it doesn't show (shows the normal the webpage cannot be found page)

    I tried searching for the problem but couldn't find anything. Please help me out. Thank you.

    -Angad Sodhi

  2. angad619
    Posted 7 years ago #

    Ok resolved. Very sorry people. Silly mistake.
    Mods please delete this topic

  3. emanoelmelo
    Posted 6 years ago #

    Ok Angad, since you solved, you should post the solution, not ask moderators to erase.

Topic Closed

This topic has been closed to new replies.

About this Topic