Support » Themes and Templates » single.php 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)
  • 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).

    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.