Title: Single.php not working
Last modified: August 22, 2016

---

# Single.php not working

 *  [Roland Yegorov](https://wordpress.org/support/users/rolandjeg/)
 * (@rolandjeg)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/singlephp-not-working-4/)
 * I’m building my website on a custom made template. So far so good with all other
   files such as header.php, index.php etc. But now I want to make single pages 
   for posts. As I read WordPress recognizes single.php automatically and assigns
   it to posts. Is it so?
 * In my case clicking on a post uses its permalink and does basically nothing. 
   As I know it should return a blank page, if single.php is empty and is present
   in the template directory.
 * Could you help me please? I’m desperate already.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/singlephp-not-working-4/#post-5574172)
 * It should return a blank page. Can you clarify what you mean by “does basically
   nothing”?
 *  Thread Starter [Roland Yegorov](https://wordpress.org/support/users/rolandjeg/)
 * (@rolandjeg)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/singlephp-not-working-4/#post-5574177)
 * Clicking on a post I get redirected via the permalink which leads to the index.
   php page (i.e. the same page) The permalink is also one for all posts. I reckon
   posts should have a unique id in the link.
 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/singlephp-not-working-4/#post-5574179)
 * Can you post the contents of your `index.php` to [Pastebin](http://pastebin.com/)
   and post the link here? What are your permalink settings (Dashboard > Settings
   > Permalinks)?
 *  Thread Starter [Roland Yegorov](https://wordpress.org/support/users/rolandjeg/)
 * (@rolandjeg)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/singlephp-not-working-4/#post-5574181)
 * **Here is the index.php: **[http://pastebin.com/fqgPMMxZ](http://pastebin.com/fqgPMMxZ)
 * Ohh…thank you! I managed to find the cause. My permalinks were set to _manual_
   instead of _default._
 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/singlephp-not-working-4/#post-5574183)
 * Glad you have it figured out. I did notice that you’ve got a hardcoded URL when
   you call `the_permalink()`. That’s not necessary, as WordPress does the right
   thing on its own. IIRC, WordPress doesn’t even consider any arguments passed 
   to `the_permalink()`.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Single.php not working’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * 5 replies
 * 2 participants
 * Last reply from: [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/singlephp-not-working-4/#post-5574183)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
