russtuck91
Member
Posted 8 months ago #
I'm using the wp_editor command to provide the WordPress text editor on the frontend. With the editor, I need access to the "Gallery" tab that shows the current attachments for the page. I've set up the whole editor and it shows the usual "Upload/Insert" button, but loads a popup window that shows only 4 tabs at the top, without the "Gallery" tab.
Does anyone know how I can do this? Hopefully there's a way to do just with the wp_editor options, but I don't think so, so hopefully it could be done with some kind of filter in functions.php. Or anything else, whatever works. Please help!
hexagongirl
Member
Posted 8 months ago #
I'm guessing this could be because it doesn't know what the $post->ID is, & therefore can't show you the gallery?
I've not used wp_editor before, but does this post help at all?
russtuck91
Member
Posted 8 months ago #
Actually I don't think so, I'm calling wp_editor on the actual page that I'm editing (as far as WordPress is concerned). Whenever the url ends with "?edit=true", it loads the editor instead of the actual page content. So, whenever there's the GET variable 'edit'.
aammir
Member
Posted 8 months ago #
i'm also using wp_editor command..