I want to create an archive page for my custom post type. My custom post type name is spanish so i have created a page archive-spanish.php but this archive page is not working. default archive showing instead of archive-spansish.php.

1 Answer 1


Can not help you without reviewing your code. Make sure you have created a proper page template. Go through this tutorial if you are doing something wrong.

  • Thanks for comment . I am following codex.wordpress.org/Post_Type_Templates this
    – Shiva
    Jul 12, 2017 at 12:25
  • when i do this and resave permalink then internal page giving error not found
    – Shiva
    Jul 12, 2017 at 12:55
  • Do your front page is working ? have you developed your own theme ? Try to make permalink as plain on id base and then again save it for post type.
    – TMA
    Jul 12, 2017 at 12:58
  • Yes front page is working. I have developed my own theme, I changed permalink as plain then page is working but archive-spanish.php which i have created is not working.
    – Shiva
    Jul 12, 2017 at 13:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.