WordPress.org

Ready to get started?Download WordPress

Forums

Comment out Edit Post link (3 posts)

  1. ellenfinkl
    Member
    Posted 8 years ago #

    I have the following in my index.php:
    <?php edit_post_link('Edit','','|'); ?>
    Since I'm not allowing anyone else to edit my blog posts, can I do the following to comment it out?

    <!--<?php edit_post_link('Edit','','|'); ?> -->

    I'm not sure of the syntax.

  2. Beel
    Member
    Posted 8 years ago #

    It only shows up for you when you are logged in or anyone else of a higher level (which I assume there isn't) so just leave it. Log out and then view the page and you will see what I mean.

  3. ellenfinkl
    Member
    Posted 8 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags