Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I’m sorry, but that doesn’t make sense. Maybe you don’t want your site to be public?

    Thread Starter Gustav

    (@4ever16)

    @sterndata The images are very sensetive so i dont want oter users to see them. Not adult content! Before the post is accepted i need to see some images. The yare sensetive so i need to make it so only admin can see them.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What do you mean by “before the post is accepted”?

    Thread Starter Gustav

    (@4ever16)

    @sterndata all posts are hold as pending. Users need to upload minimum 1 image in their post before i can accept the post and publish it.

    After i accept the post i need to hide that image for all users but not admin.

    I cant delete that image before i publish it i need that image to be in the post for future inspect. So i need to make so only admins can see images in posts.

    • This reply was modified 5 years, 3 months ago by Gustav.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    When a post is in pending, only an Editor or Admin can publish it. If you don’t have any Editors, only admins can see the pending posts. I haven’t seen a way to block images for Editors.

    I found this very helpful: https://publishpress.com/blog/pending-review-draft/

    Thread Starter Gustav

    (@4ever16)

    @sterndata how does that info help me?

    Simple < if admin > show images in posts <>

    < if none admin > hide images in posts <>

    • This reply was modified 5 years, 3 months ago by Gustav.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You could probably write a plugin that uses a filter on the_content to look for and remove <img stuff.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Only admin can view images in posts?’ is closed to new replies.