Re: How to have custom fields per category?
I think what has to happen for that is that:
A: You have to add all of these to one form, and have them fill out the information based on the category ( so all the options are "optional depending on the listing". For instance, you would have brand, model, mileage, price, location, number, bedroom etc. all on one page. Price should stay a constant field since it essentially means the same thing for all ads ( how much?)
B: You could try to make three separate forms, and add the meta-fields for each, and have the post a classifieds link go to the form links, where you could choose one of the three forms. I think both are viable.
A might be a lot of stuff on the page, maybe you can add some type of tab/div function so people can choose the fields they want to fill out ( tab 1: car fields, tab 2 house fields, etc).
I am working on that now. My only trouble is I am still a little miffed with Wordpress on how to add fixed custom field values ( location: 1,2,3 ) where it drop-downs. If anyone can give me three sentences ( do I add this straight into the DB? Do I add this into the custom field in the post, and fetch those values in a form? ).
But I am also working on this. So we should keep in touch if there is a breakthrough
If a poster will post an ad under the category "Cars", the required fields should be: Brand, Model, Mileage, Price.
If the ad will be under "Real Estate", fields that should be filled up are: Type (House, Condo, Apartment), Location, Number of Bedrooms, Price.
If the ad is under "Business Establishments", required fields: Name of Establishment, Type of Business, Contact Details.