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

Error: multi-select option with population #384

Closed
dylan-ngo11 opened this issue Mar 20, 2015 · 8 comments
Closed

Error: multi-select option with population #384

dylan-ngo11 opened this issue Mar 20, 2015 · 8 comments
Assignees

Comments

@dylan-ngo11
Copy link

Hi!
I used multi-select option with list of users and posts, but it didn't work.
here is my code:

'demo_multi_select_posts'      => array(
                'type'       => 'multi-select',
                'label'      => __( 'Multi-Select: Users', 'unyson' ),
                'population' => 'users',
                'source'     => array('author')',
                'desc'       => __( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
                    'unyson' ),
                'help'       => sprintf( "%s \n\n'\"

\n\n %s", __( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'unyson' ), __( 'Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium', 'unyson' ) ), ),
@dylan-ngo11
Copy link
Author

Is there any fixes?

@dylan-ngo11
Copy link
Author

I updated the plugin and the multi-select still did not work with users and posts

@ghost
Copy link

ghost commented Mar 23, 2015

@duongancol the fix is not included in the latest release yet, so when you update the plugin from wordpress admin it will not contain the fix. We will create a new release later. Until then, you can download and install the plugin manually in wp-content/plugins/unyson/

@dylan-ngo11
Copy link
Author

hi @moldcraft : I did clone unyson framework and replaced to wp-content/plugin/unyson. It still did not work.

@ghost ghost reopened this Mar 23, 2015
@GheorgheP
Copy link
Contributor

Hi,

By what name are you searching for? Now the option is made to search by user user_nicename

@dylan-ngo11
Copy link
Author

@GheorgheP : It worked for me.
One more question, is there any way to list all usesr when I click to input tag? I mean not by searching.
It look like when you set population with array. I think it more convenient. For example my site has a lot of user. It's quite difficult to remember user's nick name

@GheorgheP
Copy link
Contributor

Hi,

In this case just use the population as array, and in choices set a function that will return all users and that's all.

In future we plan to add functionality with pre-population with some items ( posts, terms, posts ), but this is not that you, as it will populate with a limited number of items.

@dylan-ngo11
Copy link
Author

Hope it will be released soon!. Thanks

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

No branches or pull requests

2 participants