WordPress.org

Ready to get started?Download WordPress

Forums

single.php Error (3 posts)

  1. davemiller
    Member
    Posted 7 years ago #

    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.

  2. newflesh
    Member
    Posted 7 years ago #

    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).

  3. davemiller
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags