Today we are finally releasing Custom Fields extension version 1.3. You should see an update notification in your wp-admin / Plugins panel within 24 hours, if not then go to wp-admin / Dashboard / Updates panel and click the “Check Again” button.
Before you do that though, read below on what is new in the version 1.3.
I am pretty proud of this one as it solves quite a lot of problems our users asked about
Assigning Forms Schemes to Categories
I often get a question phrased: how to have different fields in the [adverts_add] for each category? For a long time, we had a free code snippet that did this, but since there is so much demand for this kind of functionality i decided to move it to the Custom Fields extension core.
If you are using the Preselect Ad Category snippet you can deactivate it as the Custom Fields 1.3 should be able to take it from here, it is using a similar code so you should not need to assign the categories again, one thing you will need to change is to add a preselect_category=1 param to the [adverts_add] shortcode.
One small update we made is that the assigned form schemes are cascading. This means that you can assign a form scheme to top category only and all sub-categories will inherit it.
If you need two similar forms you no longer need to create both of them from scratch. Just create one, then while editing the form click the “Clone” button and work with an already customized form instead of the default one.
Data Sources Interface
Since version 1.0 we had a Data Sources interface that allowed registering re-usable data sources (ie. options) for the fields like Dropdown, Checkbox, and Radio. The problem with this solution was that only users familiar with PHP programming code take advantage of it especially if you wanted to have a data source using custom taxonomy.
Version 1.3 has a user interface for the data sources, so you can register them directly from wp-admin / Classifieds / Options / Custom Fields / Data Sources panel and then use them in the forms.
It’s an elegant solution that any user can use. That being said using the Taxonomy as a data source still requires a small code snippet to register a new taxonomy but it is more of a copy and pastes kind of thing rather than actual programming.
New Field Types
The new version introduces 3 new field types
File Upload – more of the Gallery field that can be set up to either upload the files into the Media Library or to save them as normal files in the wp-content/uploads/wpadverts folder.
Date and Time Field – Date picker which allows entering a date alone (in one of three formats: Y-m-d, d/m/Y, or m/d/Y) or date and time (hours and minutes).
Autocomplete – This field is actually already being used in the Maps and Locations extension (you can see how it looks like in the Maps and Locations 1.4 release post). The autocomplete field can be used with data sources but only with the Taxonomy Data Sources.
Let us know what do you think?
I think that we tackled all the main problems our users had with the Custom Fields extension, but if you think that some important feature is missing please let us know in the comments.
Absolutely awesome release thanks for pushing wordpress boundaries.
I think the only feature missing is the ability to categorise the datasources for example all 5 datasource for real estate ads should be categorised as REAL ESTATE DATA.
thanks for your feedback, we are not really planning to allow categorizing the data sources right now, but i think that a good workaround would be to prefix the names with a category, so for example instead of naming the form “Apartments” you could name it “[RealEstate] Apartments” this should make it easier to scan the list.
Thanks for the feedback, I like your approach its very simple.
Another suggestion Is Conditional logic. For example I created a data source called ADVERT TYPE, which has the following options
– Free Giveaway
– For Sale
Now when a user selects Free Giveaway in the [advert_add] form the Price field should be hidden automatically, since the ad is a giveaway price field is not necessary.
The Conditional Logic is on my to-do list, however, i am afraid i cannot tell right now when this will be added since this requires quite a lot of work while there is not much demand for this functionality.
For most of our users having a different form depending on a selected category is good enough.
Thanks for this update,
Is it possible to change the design of Preselect Ad Category?
Hi, right now i am afraid that the only way to use a different layout for the category preselection is to install a Dependant Taxonomy Dropdown snippet https://github.com/simpliko/wpadverts-snippets/tree/master/dependant-taxonomy-dropdown and add in your wp-config.php file the line below
define( “PRESELECT_AD_CATEGORY_USE_DTD”, “1” );
Then instead of the categories list you will see a dropdown and when you select a value in the dropdown another one with the selected category subcategories will show and so on.
Thanks for reply,
I tried it but nothing change in the pre-select category, it still with same design.
Thanks for reply,
I tried what you told me, but nothing change the pre-select category remains the same
Hi, please send me a support question regarding this via the contact form at https://wpadverts.com/contact/
It would be best if you would link to your page with the [adverts_add] shortcode and some screenshot(s) showing how you have the DTD snippet installed.