Support » Fixing WordPress » Conditional Tag: If Amin …. else …

  • 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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; ?>

    Very useful 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditional Tag: If Amin …. else …’ is closed to new replies.