page-slug.php not working but only for specific slug
I’m trying to create a page called “Comics” with the slug “comics” to use as the main table of contents for my webcomic site. I’ve created a page-comics.php file, however when I go to the page it just links back to index.php. It also doesn’t work when I try using the ID instead. When I try using this same format with other slugs and IDs it works fine, so I know WordPress is working correctly. I thought it might be conflicting with something I had in functions.php, however nothing else was using the name “comics” (I’ve linked to the file below for anyone to view). I also tried scrubbing the database for any deleted items that might have been using that slug and got nothing. Does anyone know what could be causing this issue?
My functions.php file:
Leave an answer