Dannyw24
Dannyw24

Reputation: 61

Wordpress custom post type archive and single.php files not working

Hi I've created a custom post type called shows.

here is the code for it. Pastebin

I've created 2 files that follow accordingly to the wordpress hierarchy and called them archive-shows.php and single-shows.php. These should automatically link to the correct pages however for some reason they both default back to index.php.

Fix's tried Permalinks Flushed has archive = true

please any suggestions.

Upvotes: 0

Views: 814

Answers (2)

Scott Simpson
Scott Simpson

Reputation: 3850

Make sure your .htaccess file has the correct permissions to be writable.

Upvotes: 0

Luuk
Luuk

Reputation: 61

Try Wordpress Admin => Settings => Permalinks and choose anything else then "Default"

Upvotes: 1

Related Questions