-
Not sure why my threads keep getting marked as resolved when the problem has yet to be fixed. Since, the other topic was closed, thus not allowing me to comment, I’ve made this new thread. I’ll copy and paste the same issue so it can actually be resolved this time.
Quoting myself: “I have two custom fields that my users are forced to select. One is, “Scene” (field key= scene_multiselect) and the other is “City” (field key= city). The option for Scene, has dropdown options for Visual Art fashion Music and a bunch of others.
My question is, what shortcode would I use to display a directory of members who have selected Visual Arts for their Scene? I want this to be searchable by a text input box and also a city drop down box. Any help would be appreciated, shortcodes are giving me a lot of issues.
Much Thanks!”
Quoting myself: “Perhaps this is easier:
I want to show a member directory list of ONLY those members who selected Visual Arts from a custom multiselect field called “scene_multiselect”
Can someone please supply a shortcode that will do this?”
Quoting myself: “Well I asked this question in the codecanyon comments and got an answer from the developer but it didn’t work. I have a custom field that requires users to select their art scene. The field is called “Scene” (field key= scene_multiselect). So for instance, any painters that choose “Visual Arts” for this custom field I want to be able to show JUST THEM in a directory. The developer gave me this shortcode to use: [userpro template=memberlist scene_multiselect=”Visual Arts”]. I used it on this page: http://artistsnation.org/visual-arts-members/ but it is not working. It still shows all users.
I can’t really grow my site until this is sorted out. The developer asked me to post in the forums so instead of codecanyon so hopefully he will see this and give his input.
Any help would be appreciated.”
Quoting SUPPORT: “Hi there!
Can you try an example shortcode:
[userpro template=memberlist gender=Male]
Just to test the functionality of filtering. It seems fine at my end, the logic is same (It works with custom fields created too)”
———–
Now for my reply: I have tested the shortcode that support has provided, [userpro template=memberlist gender=Male]. It does in fact work. This however doesn’t help me at all.
So the issue at hand is why is this shortcode that the developer says should resolve my problem, not actually working? Here it is: [userpro template=memberlist scene_multiselect=”Visual Arts”]
This unfortunately does not resolved my issue.
Just noticed when I go to my userpro settings I see this, perhaps this is part of the issue:
Warning: extract() [function.extract]: First argument should be an array in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 144
Warning: ksort() expects parameter 1 to be array, string given in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 183
Warning: Invalid argument supplied for foreach() in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 184
Warning: extract() [function.extract]: First argument should be an array in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 144
Warning: ksort() expects parameter 1 to be array, string given in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 183
Warning: Invalid argument supplied for foreach() in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 184
Warning: ksort() expects parameter 1 to be array, string given in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 67
Warning: Invalid argument supplied for foreach() in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 69
Email me your FTP and WP login. and the URL for member list. 🙂 Thanks!
It seems that you didn’t update your UserPro – there was a mid point where a problem happened on fields, you need to reinstall UserPro fields (Can you please do that or did you add so many fields?) Because this is the only way to get rid of these warnings. If you want me to do this for you, I am ready.
Just tried it without the quotes, still did not work :/
Support can you please do this for me? Do you need FTP or wordpress admin?
Yes please. Make sure you included FTP and WP login. Also are you sure that there are users who choose visual arts already?
done, by the way the ftp file is “an”
Yes there are a few and myself, Matthew Martin, that have selected Visual Arts. Even if no one has though, shouldn’t it show 0 members instead of all of them?
I want to reproduce it. So that field is a multiselect and Visual Arts is a choice right? Did you try it with single select instead of multiselect and it worked?
Yes the field is a multiselct and Visual Arts is one of the choices. I have not tried it with a single select. Sorry for my delay in responding my work is very busy right now but I’ll check back once I see your reply. Thank you for looking into this.
Please check it with single select (Because I see the other default dropdowns work) you said gender works for example. So I want to make sure it’s an issue with multiselect only
well this still appears on the plugin page:
Warning: extract() [function.extract]: First argument should be an array in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 149Warning: ksort() expects parameter 1 to be array, string given in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 188
Warning: Invalid argument supplied for foreach() in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 189
Warning: extract() [function.extract]: First argument should be an array in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 149
Warning: ksort() expects parameter 1 to be array, string given in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 188
Warning: Invalid argument supplied for foreach() in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 189
Warning: ksort() expects parameter 1 to be array, string given in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 72
Warning: Invalid argument supplied for foreach() in /home/content/68/11000368/html/an/wp-content/plugins/userpro/admin/admin-functions.php on line 74
Single select doesn’t work for me since I need users to select multiple options. I tried multi checkboxes though and it still doesn’t properly filter.
I will admit I often mess up shortcodes, so please verify I am using the correct one. I am testing on the page called Test Page Sandbox, the custom field I created is called scenescheckboxes, and one of the checkboxes is Visual Arts. I used the following shortcode:
[userpro template=memberlist scenescheckboxes=Visual Arts]I on my personal profile I chose Visual Arts, so it should show at least my profile on the results. I also selected Artisans, and when I tested it with [userpro template=memberlist scenescheckboxes=Artisans] and still nothing.
Maybe I’m doing something wrong but I would really appreciate a solution. I hope its somethign simple like a shortcode error :/
The topic ‘[ Resolved and Closed ] Shortcode Help – NOT RESOLVED’ is closed to new replies.