thomasD-2
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Recaptcha is missing in Firefox browser
Gestartet von: thomasD-2 in: Toolset Professional Support |
2 | 3 | vor 3 Jahren, 2 Monaten | ||
Toolset blocks v1.3 fatal error related to Class 'Toolset_Relationship_Role'
Gestartet von: thomasD-2 in: Chat Support |
1 | 2 |
vor 4 Jahren, 2 Monaten
|
||
Plugin Update not possible
Gestartet von: thomasD-2 in: Toolset Professional Support |
2 | 2 | vor 5 Jahren, 8 Monaten | ||
POST_PARENT_TITLE doesn’t work after migration to Types3 and new relationships
Gestartet von: thomasD-2
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 12 | vor 6 Jahren, 4 Monaten | ||
Form notification to email from parent post field no longer working after Types 3.0 update
Gestartet von: thomasD-2
in: Toolset Professional Support
Problem: I have a Form that triggers an email notification. I send the notification to an email address that is stored in a parent post's custom field, by using the CRED API cred_notification_recipients. Since updating to Types 3.0, the email notifications are not sent as expected. Solution: Update the code to work with the new Post Relationships API, and ensure the child post status is not "private". add_filter('cred_notification_recipients', 'modify_recipients', 10, 4); function modify_recipients($recipients, $notification, $form_id, $post_id) { // Check notification name matches target notification if ( isset($notification['name']) && 'Mail an Veranstalter' == $notification['name'] ) { // Add email recipient $parent_id = toolset_get_parent_post_by_type( $post_id, 'veranstaltung' ); $email_of_organizer = get_post_meta($parent_id, 'wpcf-veranstalter-email', true); $recipients[] = array( 'to' => 'cc', 'address' => '$email_of_organizer', 'name' => '', 'lastname' => '' ); } return $recipients; } Relevant Documentation: |
2 | 5 | vor 6 Jahren, 5 Monaten | ||
CRED form editor doesn’t show my custom post types in dropdown for post types
Gestartet von: thomasD-2
in: Toolset Professional Support
Problem: The 2 post types that I created are: - Anmeldungen - Veranstaltungen They don't show up in the dropdown selector on the post forms page. When I try to edit the post form "Anmeldung", I can't save the settings, as the relation to the post type "Anmeldung" gets lost. Interesting observation: I can create new custom post types that show up correctly (e.g. the "TestbeitragstypenTD" that I created today). So the problem is related specifically to my 2 post types that I had created a few weeks ago. I had edited the form several times over the past weeks without any problems. Unfortunately there ist ongoing activity and data input on the production website, so I need a solution to repair the problem without redefining all the data structure. Solution: Q1) The 2 post types don't show up in the dropdown selector on the post forms page. Since you setup those two post types as not "publicly_queryable", so CRED will not be able to edit/create those post, for example you can try this: Edit the post type "Anmeldungen", in section "Options", enable the option "publicly_queryable", and test again. More help: https://codex.wordpress.org/Function_Reference/register_post_type#publicly_queryable publicly_queryable (boolean) (optional) Whether queries can be performed on the front end as part of parse_request(). Q2) form "Anmeldung", I can't save the settings, as the relation to the post type "Anmeldung" gets lost. Same as above, you will need to enable the option "publicly_queryable" for post type "Anmeldungen", and test again. Relevant Documentation: https://codex.wordpress.org/Function_Reference/register_post_type#publicly_queryable |
2 | 5 | vor 6 Jahren, 8 Monaten | ||
CRED form ist losing settings and notifications after Save
Gestartet von: thomasD-2
in: Toolset Professional Support
Problem: I was editing an existing CRED form that was working for many years. In the support thread I saw a similar problem that was resolved with the latest CRED version 1.9.5, so I made an update. But now I have this error: /wordpress/wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/classes/cred-editor-addon.class.php" doesn't exist! Solution: The problem you mentioned above is abnormal, in case it is a compatibility problem, please try this: 1) Make sure you are using the latest version of Toolset plugins, you can download them here: 2) deactivate other plugins and switch to wordpress default theme, and test again Relevant Documentation: |
2 | 7 | vor 6 Jahren, 8 Monaten | ||
CRED-notification to email from parent post field
Gestartet von: thomasD-2
in: Toolset Professional Support
Problem: I would like to send a CRED notification to an email address that is stored in a custom field on the CRED post's parent post. How can I access that parent post field in the CRED notification recipients configurations? Solution: Within the callback, you can figure out the parent post by calling get_post_meta on the child post, and accessing a hidden field that relates a parent post ID to the child post. The name of that field follows the format "_wpcf_belongs_" + parent post type slug + "_id". So if your parent post type slug is "event", then the postmeta key is "_wpcf_belongs_event_id" and the code is: $parent_id = get_post_meta($post_id, '_wpcf_belongs_event_id', true); Once you know the parent post ID, use it to call get_post_meta again on the parent post to retrieve the email field value. Types fields use the prefix "wpcf-" in the postmeta table, so if your email field slug is "email-address-of-organizer" then the code would look like this: $email_of_organizer = get_post_meta($parent_id, 'wpcf-email-address-of-organizer', true); Now the variable $email_of_organizer contains the email address from the parent post. Use that to modify the code sample on the API documentation page to fit your needs. Relevant Documentation: |
2 | 15 | vor 6 Jahren, 10 Monaten |