Devam Ediyor

wordpress custom searches

Hello I need 2 wordpress custom searches.

For search 1 (search on posts) :

I have a search box on my site (local right now so you cant see it) it uses both types of fields - custom and standard

Standard fields:

Category drop down (with sub categories)

Custom fields are:

cp_state,cp_country,cp_price,search_term

I would like the first search to use ALL of the fields to match before returning results. SO for example we have the following 3 records:

Record 1:

category='The Bees'

cp_state='Montana'

cp_country='USA'

cp_price=5

content='There are lots of black bees in the house'

Record 2:

category='The Bees'

cp_state='Tennessee'

cp_country='USA'

cp_price=10

content='The big bunny got loose in the house'

Record 3:

category='Funny Frog'

cp_state='Montana'

cp_country='USA'

cp_price=100

content='welcome to the frogs lair'

Example 1: If the user searches with the following:

category='The Bees\Sub Bee1'

cp_state='All'

cp_country='All'

cp_price=ALL

search_term='black'

Will only look in the category/sub category The Bees\Sub Bee1 - it will return that record because the term 'black' is listed in the content -

Example 2: If the user were to do the next search:

category='All'

cp_state='ALL'

cp_country='ALL'

cp_price=All

content='house'

It would return records 1 AND 2 because of House being in both posts

Example: 3

category='Funny Frog'

cp_state='ALL'

cp_country='ALL'

cp_price=All

content='house'

Would return nothing because the keyword doesnt match the only record in the category funny\frog

Results should return to a standard wp search page and be linkable to the post results.

The second search needed is much easier:

Basically I have 4 custom profile fields in the wp_usermeta table:

They are organization_type, user_state, user_country, business_name

organization_type values are a,b,c,d (drop down)

user_state =normal states (drop down)

user_country=normal countries (drop down)

business_name=text field

I want a search where I can say:

Give me a list of all the organizations of type a who are located in the country USA and in the state of Montana and make it a hyperlink to the users page (which should be author page I think)

- i would like the echo code to paste into my wordpress theme as well (so echo for each the results)

Im pretty sure this isnt to strange a request.

Cheers

Beceriler: MySQL, PHP, WordPress

Daha fazlasını görün: cp_country, wordpress cp_country, usa wordpress, standard wordpress, match my profile, funny categories, first tennessee, big-lots, big lots, my searches, wp-types, wordpress custom, wordpress custom posts type, usa b, theme custom, the big think, Tennessee, funny see, d custom, custom type, custom post type, custom field, bunny, big black, wordpress custom post type custom fields

İşveren Hakkında:
( 0 değerlendirme ) Laniscat, France

Proje NO: #690840

Seçilen:

soner

I can offer my high quality wordpress programming services to you. Please contact if interested.

0 gün içinde 600$ USD
(118 Değerlendirme)
7.9

5 freelancer bu iş için ortalamada 490$ teklif veriyor

excelence

lets do it , thank you.

in 4 gün içinde600$ USD
(69 Değerlendirme)
8.2
thcoder

please check PM.

in 5 gün içinde550$ USD
(43 Değerlendirme)
6.9
naranili

Could be realized as plugin with widgets.

in 5 gün içinde300$ USD
(38 Değerlendirme)
5.3
aryanhigh

please check PMB

in 3 gün içinde400$ USD
(4 Değerlendirme)
1.4