Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9153865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:20:32+00:00 2026-06-17T12:20:32+00:00

In the WordPress 3.5 media manager under the Create Gallery tab, users can choose

  • 0

In the WordPress 3.5 media manager under the “Create Gallery” tab, users can choose multiple images and then have the ability to reorder images in a second page. When done, it inserts a shortcode such as:

I would like to use this same interface so that users can select and reorder images. However, instead of returning a shortcode, I would like to return just a list of ID’s of the images like so: 895,1007,986

Another important thing is that my button will be in a metabox and the list of ID’s will not be placed inside TinyMCE post edit area.

How can I achieve this?

Thank You.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:20:33+00:00Added an answer on June 17, 2026 at 12:20 pm

    You can call a = wp.media.gallery.edit(''); like WordPress does in media-editor.js.

    I wasn’t sure what event can catch the update, I found it with a.on('all',function(n,a) {console.log(n); console.log(a)})

    Notice “update” in the log, and an object with a models array with the images. So, the quickest solutions using the gallery selector would be:

    wp.media.gallery.edit('').on('update',function(obj)
      { do something with obj.models)})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a custom media center wordpress website. I have created my own gallery,
I have images uploaded in the media library in WordPress. I would like to
<?php $feed = file_get_contents('http://thexmofo.wordpress.com/feed/'); $xml = new SimpleXMLElement($feed); $xml->registerXPathNamespace('media', 'http://thexmofo.wordpress.com/feed/'); $images = $xml->xpath('/rss/channel/item/media:content@url'); var_dump($images);
I've set the width of large files in Wordpress' Media settings, but how can
I need to search in wordpress posts for posts that have the gallery included
For images uploaded using WordPress' media uploader, there is an Insert Into Post button
I currently run several Wordpress MU installations. My users are asking for the ability
I've been playing around with the new media manager in WordPress and had some
I'm working on wordpress media library tab. Inside this iframe, I provide a link
In my local wordpress site i can just upload files with just 2Megabyte,i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.