Skip Navigation

[Resolved] How to edit Other Plugins Fields with CRED?

This thread is resolved. Here is a description of the problem and solution.

Problem:
I have a plugin that provides Custom user and post Fields.
I want to edit them with CRED since that allows me to bring those fields to the front end in my forms.
How?

Solution:
With CRED you can control Other Plugin's fields if you want to add or edit the values of those Fields using CRED.
Follow the DOC linked below to see how.

Note!
"Complex fields" (Like Galleries, Checkboxes or similar) cannot be controlled very well with Toolset, due to the nature of those fields.

Relevant Documentation:
https://toolset.com/documentation/user-guides/letting-cred-edit-custom-fields-created-by-other-plugins/

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by kalmang 6 years, 9 months ago.

Assisted by: Beda.

Author
Posts
#617646
2018-02-19-20-13-bsbclassifieds.wpengine.com.png

Tell us what you are trying to do?
I am setting up a classified site that includes events management and job listings. For job listings, we would like to use WP Jobs Manager to manage the actual Job listings, but CRED classifieds to handle the creation of a listing and the e-commerce component.

Is there any documentation that you are following?
We have been able to get a long way using the toolset documentation for CRED.

I have tried this:
https://toolset.com/faq/how-do-i-convert-existing-custom-types-and-fields-to-types-control/

I want to connect WP Job manager plugin with CRED. Currently it can successfully control basic fields like Job title, type and description, because these map to basic post fields. But to really manage the Jobs post type created by WP Jobs Manager, we need to be able to control other fields like Location and company info. I know that CRED forms can control other post-types' custom fields under some circumstances. Is there some way to do that with this plugin?

I tried creating Post Fields, but they create new custom fields on the Jobs type, but I want to map my input to the existing custom fields.

After a bunch of research, it seems as though I would have to hack the plugin and change the way that the custom fields are defined.

Is this the way you recommend doing this? Is there documentation for defining custom fields for custom post types so that CRED forms can control them?

What is the link to your site?
bsbclassifieds.wpengine.com

#617849

I know that CRED forms can control other post-types' custom fields under some circumstances. Is there some way to do that with this plugin?

CRED will allow you to control any simple field perfectly fine, but as soon the field registered by the other plugin is of more complex nature (Checkboxes, Address Fields with maps or Coordinates, Select, WYSIWYG, etc), then CRED cannot guess the syntax with which the plugin works with for those fields, and it's likely not to update those fields correctly later, if used in a CRED Form.

For example, WooCommerce Attributes are available to control with CRED but won't work, due to their complex nature:
https://toolset.com/documentation/user-guides/creating-woocommerce-products-using-cred-forms/

Now, I am not entirely familiar with the plugin you mention, but from their Description, there seem several complex fields involved.

I can not suggest hacking that plugin so to change their fields' formats.

For CRED mapping of other's custom fields we have a dedicated DOC here:
https://toolset.com/documentation/user-guides/letting-cred-edit-custom-fields-created-by-other-plugins/

It's not needed to control them with Types.
You would only control them with Types if you wanted to deactivate the other plugin.
With CRED you control them if you want to add or edit the values of those Fields using CRED.

In both cases, complex fields canno0t be controlled very well with Toolset, due to the nature of those fields.

Maybe you can apply some Custom Code to get the data submitted by CRED and change it to the syntax the other plugin expects, by hooking your code into cred_save_data() for example:
https://toolset.com/documentation/programmer-reference/cred-api/

Can you let me know at what point exactly you started to notice issues?
I can try to replicate the eventual steps if you can provide me such steps, and then see if I can come up with a solution, or workaround.

#619266

Thank you, this helped!