amarildow
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Cannot get the email of the parent author to send a notification
Started by: amarildow in: Toolset Professional Support |
3 | 7 | 5 years, 1 month ago | ||
RSS feed is only visible for logged in admin user
Started by: amarildow in: Toolset Professional Support |
2 | 9 | 5 years, 2 months ago | ||
View creates a loop of the main loop
Started by: amarildow in: Toolset Professional Support |
2 | 4 | 5 years, 4 months ago | ||
Messaging module shows all messages
Started by: amarildow in: Toolset Professional Support |
1 | 2 | 5 years, 4 months ago | ||
Link to CPT user profile
Started by: amarildow
in: Toolset Professional Support
Problem: I have a custom post type "Freelancers" that represents Users. Each User is the author of one Freelancer post. I also have Jobs and Offers as custom post types in a one-to-many post relationship where Jobs is the parent and Offers are the children. Freelancer Users can submit Offers to Jobs. In the Jobs post, I would like to display a list of Offers and a link to the Offer author's Freelancer post. Solution: Use a nested View setup. |
2 | 6 | 5 years, 4 months ago | ||
Auto login doesn't work
Started by: amarildow in: Toolset Professional Support |
2 | 10 | 5 years, 6 months ago | ||
Grabbing user ID in current post
Started by: amarildow in: Toolset Professional Support |
2 | 3 | 5 years, 6 months ago | ||
Passing value from a HTML form field to a cred field
Started by: amarildow
in: Toolset Professional Support
Problem: I would like to pass values into a Form using URL parameters. Solution: The urlparam attribute in a cred_field shortcode can be used to specify a URL parameter to define the field value. Relevant Documentation: |
2 | 5 | 5 years, 8 months ago | ||
Redirect to a content template / URL
Started by: amarildow in: Toolset Professional Support |
2 | 2 | 6 years, 5 months ago | ||
Single author template / Profile page
Started by: amarildow
in: Toolset Professional Support
Problem: I would like to automatically create a profile page for each new User who signs up with CRED. Solution: You can use the cred_save_data API to automatically create a post after registration. Create a "Profile" post type, and add the following custom code to functions.php: add_action('cred_save_data', 'ts_new_user_profile_action',10,2); function ts_new_user_profile_action($user_id, $form_data) { // if a specific form if ($form_data['id']==1234) { // Create post object $my_post = array( 'post_title' => $_POST['first_name'] . ' ' . $_POST['last_name'], 'post_content' => '', 'post_status' => 'publish', 'post_author' => $user_id, 'post_type' => 'profile' ); // Insert the post into the database wp_insert_post( $my_post ); } } Replace 1234 with the numeric ID of the CRED registration form, replace "profile" with the slug of the post type you want to create, and modify the post_title if you want the title of the post to be anything other than the new User's name. Relevant Documentation: |
2 | 11 | 6 years, 6 months ago | ||
Notification e-mail to parent post’s author not working
Started by: amarildow
in: Toolset Professional Support
Problem: I have added some custom code using the CRED API which should modify the notification email recipients list and include the parent post's author email address. It does not seem to be working. Solution: Check the syntax and be sure your variables are correct. In this case the parent_post_author_id variable was not correctly identified with a $. The corrected code is: / Notification add_filter('cred_notification_recipients', 'my_cred_notification_recipients_func', 10, 4); function my_cred_notification_recipients_func($recipients, $notification, $form_id, $post_id){ if (204 == $form_id){ $parent_slug = "opdracht"; $field_slug = '_wpcf_belongs_' . $parent_slug . '_id'; $parent_post_id = get_post_meta($post_id, $field_slug, true); $parent_post_author_id = get_post_field ('post_author', $parent_post_id ); $author_email = get_the_author_meta('user_email', $parent_post_author_id ); $recipients[] = array('to'=>'to', 'name'=>'', 'lastname'=>'', 'address'=>$author_email ); } return $recipients; } Relevant Documentation: |
2 | 5 | 6 years, 7 months ago | ||
Display CRED form link for creating child target page shows no results
Started by: amarildow in: Types Community Support |
2 | 2 | 6 years, 8 months ago | ||
User submitted Quote on Custom post type
Started by: amarildow in: Toolset Professional Support |
2 | 4 | 6 years, 8 months ago |