I’ve looked thru the documentation, but I can’t for the life of me figure out how Custom Fields actually works in the Custom Wizards. Where are these custom fields stored? How are they accessed? How does a user set a custom field via the form?
Use case: We created a Boolean custom field in the Wizard called: has_reviews. We Serialized it (no idea what that actually does) to topic_view topic_list_item. Then on the action for a form, we mapped it ( What does mapping do anyway? ).
But we don’t see that custom field anywhere on the form nor in the post. How does the form register a value for that custom field and how do we access that value? How does it get into a post? We ran an API request to the topic we created from the form, but the custom field doesn’t show anywhere.
My impression was that custom fields allow you to add fields to a topic or post, but that doesn’t seem to be the case, as there is no way to actually access those fields in any way, or set any values. So I’m confused how this even is supposed to work.
Thanks Sam for the great question. I confess that I’ve never really understood them either, and you are right - it isn’t well explained in the documentation.
Our @development_team is under a lot of pressure at the moment, but we really need their expertise for this. We’ll need to be patient I’m afraid.
Once we understand I’ll aim to have a clear explainer in the documentation.
This is awesome! thanks so much. Going to try to use this now.
Just used this video to create some custom fields and works well. My only follow up question is: How do you edit the value in a custom field? If you assign a custom field to a wizard, e.g. a Price to the Product per the video example, how do you edit this price afterwards for that product? Editing the title and description is easy on the actual topic, but there seems to be no way to edit the price field value after submission. THanks.
Hey @osseodent@jrgong guys, there isn’t any built in-way in the Custom Wizard Plugin to edit custom fields. You can make a theme component or plugin that does this, depending on your use case.
We may break out that functionality into an entirely independent plugin at some point, along the lines of the Advanced Custom Fields Wordpress Plugin, but currently this functionality is similar to how ACF worked until they added an admin edit UI to it, i.e. it’s a way to integrate functionality with other functionality.