Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Single Pages loading with index.php instead of single.php in wordpress

My single pages and posts are not being loaded by single.php, instead they are being loaded in index.php

I'm not able to figure out the reason for this. My is a template which I have made myself and the loop in index.php is almost the same in the default theme of wordpress 3. This is creating lots of troubles for me. What could be the possible reasons?

like image 437
esafwan Avatar asked Feb 27 '23 03:02

esafwan


1 Answers

I had the same problem with neither the single-CUSTOM-TYPE.php nor the single.php being rendered after clicking the single-post-link.... only index.php instead of the correct file...

What helped me was a simple change back to Standard Permalinks in "Settings" -> "Permalinks" and a restore back to "Name of the Post" (Beitragsname)....

...maybe this might help someone else as well... greetz

Wordpress use index.php instead of single.php to show post

like image 178
ingonieur Avatar answered Apr 28 '23 13:04

ingonieur