WordPress.org

Support

Support » Plugins and Hacks » Hacks » wp_editor Upload/Insert button doesn't have Gallery tab

wp_editor Upload/Insert button doesn't have Gallery tab

  • 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!

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

    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’.

    i’m also using wp_editor command..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_editor Upload/Insert button doesn't have Gallery tab’ is closed to new replies.