WordPress.org

Ready to get started?Download WordPress

Forums

wp_editor Upload/Insert button doesn't have Gallery tab (4 posts)

  1. russtuck91
    Member
    Posted 1 year 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!

  2. hexagongirl
    Member
    Posted 1 year 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?

  3. russtuck91
    Member
    Posted 1 year 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'.

  4. aammir
    Member
    Posted 1 year ago #

    i'm also using wp_editor command..

Topic Closed

This topic has been closed to new replies.

About this Topic