Title: single.php Error
Last modified: August 18, 2016

---

# single.php Error

 *  [davemiller](https://wordpress.org/support/users/davemiller/)
 * (@davemiller)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/singlephp-error/)
 * While editing my single.php page I deleted somthing that I should have.
 * I wanted to get rid of the “edit this entry/post” link but now I get the following
   error when I click on the post’s permalink.
 * _Parse error: syntax error, unexpected T\_ENDWHILE in /home/themille/public\_html/
   redesign/wp-content/themes/tmr/single.php on line 59_
 * I don’t know how to get that php code back. Any help will be appreciated. Tx.

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

 *  [newflesh](https://wordpress.org/support/users/newflesh/)
 * (@newflesh)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/singlephp-error/#post-425901)
 * The code for the edit link in the default theme is this: `<?php } edit_post_link('
   Edit this entry.','',''); ?>`
 * Any particular reason you wanted to get rid of it? It is only visible for users
   who are logged in (and have permission to edit posts as well, I think).
 *  Thread Starter [davemiller](https://wordpress.org/support/users/davemiller/)
 * (@davemiller)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/singlephp-error/#post-425930)
 * I wasn’t sure if everyone could see that or not. If they could I wanted it gone.
 * Thank you very much for you help.

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

The topic ‘single.php Error’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [davemiller](https://wordpress.org/support/users/davemiller/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/singlephp-error/#post-425930)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
