Is it possible to insert images to a WordPress site with having to use the Insert Media window.
I have a forum type site where I would like people to be able to add images to post they can create but I don’t want them to be able to create Galleries of images etc.
I would just like the ability to add images from there system to the post like you can do on forums.
Is this at all possible.
I believe in WordPress 3.9 you can drag and drop directly into
wp_editor()
– no need for media library so you can hide the button entirely on that post type. Another option is to limit the user-role to what they can and can’t do when it comes to the media library. Check out this answer over at the WordPress StackExchangeFinally, you can probably limit what the user sees in the media library, meaning only limit it to what they’ve uploaded to that post. You can use this code below:
What the above code does it only show images uploaded to the current post. You could go further and before the script is ran, decide to only run it on a
post-type
or only on a certainuser-role
. Hopefully this helps!