-
I need an example shortcode to search by city, state, zip please.
I don’t want to hijack this thread but I have a similar request to Brent.
My page is right here http://gamerclips.tv/members/
The shortcode that I use is:
[userpro template=memberlist memberlist_v2=0 memberlist_pic_size=125 memberlist_pic_topspace=0 memberlist_pic_sidespace=0 memberlist_pic_rounded=1 memberlist_paginate=1 memberlist_show_name=1 memberlist_popup_view=1 memberlist_withavatar=0 search=1 per_page=28 memberlist_width=100%]
I’m happy to adapt mine according to feedback given to Brent
Thanks guys!
MikeJDS can we see the code in it’s entirety? I tried adding that but it didn’t really work for me, there might be something else that’s required.
I think your right..
The code I use is this:[userpro template=memberlist memberlist_v2_fields=location role=business search_location=”Location,dropdown”]
Hope that helps.
Yeah, doesn’t really work for me. I haven’t got the v2 list enabled 🙁
I don’t need dropdowns, way to may city’s state’s, zips, countries to list. Ahmed could you help us please?
Guys the correct markup is here: (Posted above)
[userpro template=memberlist memberlist_v2_fields=location role=business search_location=”Location,dropdown”]
search_location=”Location,input” will be a search text input. if Location,dropdown search will be dropdown menu.
Did that help?
location “I assume that’s a custom field already!”
Thanks again Ahmed! I’ll implement it and let you know if I have any issues.
BrentThanks Brent! In your case you should not use role=business (Because role shows only specific User’s role) the basic is same:
search filter in memberlist should be:
[ …. search_CUSTOMFIELD=”DESCRIPTION,input”]
That’s the main principle.
Thanks
I’ve tried both but it won’t work.
[userpro template=memberlist search_customfield=”city,state,zip,country”]
[userpro template=memberlist search_customfield=city,state,zip,country]
What am I doing wrong?
Hey Brent, I say you start from the beginning. Try this:
[userpro template=memberlist search_city=”City,dropdown” search_state=”State,dropdown” search_zip=”Zip,dropdown” search_country=”Country,dropdown”]
I know you said you didn’t want drop downs, but with this type of data they’re potentially the best to use as there is a large number of options.
Hope that works for you!
Hey everyone, FYI here is the correct way to do this…
This is a combination of both:
[userpro template=memberlist search_city=”city,input” search_state=”state,dropdown” search_zip=”zip,input” search_country=”country,dropdown”]
Hope this will help someone in the future!
The topic ‘Need an example shortcode to search by city, state, zip please.’ is closed to new replies.