WordPress.org

Forums

Conditional Tag: If Amin .... else ... (4 posts)

  1. trevy
    Member
    Posted 10 years ago #

    I would like to hide in WRITE POST some options to other authors, but not to me (the admin), like

    Allow Comments
    Allow Pings
    Edit Timestamp

    Thanks

  2. MichaelH
    Member
    Posted 10 years ago #

    There could be a good amount of changes necessary to the WordPress core to make this happen. You'll want to start by looking in wp-admin/post.php.

    Changing the WordPress core is not recommended but if you do make changes make sure you have backups before changing anything.

  3. trevy
    Member
    Posted 10 years ago #

    Finally I solved it.

    In wp 1.5.2

    <?php if ($user_level <10) : ?>
    ......
    <?php endif; ?>

    In wp 2.0.1

    <?php if ( current_user_can('publish_posts') ) : ?>
    ......
    <?php endif; ?>

  4. myuption
    Member
    Posted 10 years ago #

    Very useful :)

Topic Closed

This topic has been closed to new replies.

About this Topic