Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single or multiple post selection list #123

Closed
bobbingwide opened this issue Feb 1, 2015 · 7 comments
Closed

Single or multiple post selection list #123

bobbingwide opened this issue Feb 1, 2015 · 7 comments
Milestone

Comments

@bobbingwide
Copy link

Shortcodes such as [gallery] include parameters which require the user to specify the ID or IDs of the posts to be displayed, included or excluded.

The logic should allow for parameters which allow multiple values to be specified.

I have many shortcodes which also support the entry of post IDs.

It would be nice to have native support for selecting the posts from existing content.

This requirement may involve interaction with other parameter values that the user chooses: post_type, post_status, etcetera, but it's more likely to be controlled by hidden values.

e.g. For the gallery shortcode the IDs to be displayed in a selection list would be limited to attachments.

For a shortcode such as [bw_pdf] the selection would be filtered with post_mime_type=attachment/pdf.

@danielbachhuber
Copy link
Contributor

It would be nice to have native support for selecting the posts from existing content.

We actually have an internal Select2 field for selecting one post for a shortcode. I can understand and agree with the appeal of being able to pick multiple posts. We'll keep this in mind as an enhancement.

@mattheu mattheu added this to the next milestone Apr 6, 2015
@mattheu mattheu self-assigned this Apr 13, 2015
@danielbachhuber
Copy link
Contributor

@bobbingwide we've just added a post_select field which permits the selection of a single image. However, galleries aren't easily accommodated. Is it worth opening another issue for media selection?

@mattheu
Copy link
Contributor

mattheu commented Apr 21, 2015

We should be able to support galleries as part of the attachment field I think. I think we should open a ticket. I've had this request before.

Also related is #244

@bobbingwide
Copy link
Author

@danielbachhuber OK. I'll have a look and see if I can use it.
But it's not just attachments are referenced by post ID.

@mattheu
Copy link
Contributor

mattheu commented Apr 22, 2015

The post select allows you to specify any query you want so should be able to select any post type.

@bastienho
Copy link

Hi, the same feature for taxonomies or custom lists would be very useful

@misfist
Copy link

misfist commented May 21, 2016

+1 I need multi-select for taxonomies and other lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants