ahmedI
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 |
---|---|---|---|---|---|
form hooks not working with relationship form
Started by: ahmedI in: Toolset Professional Support |
4 | 10 | 3 years, 10 months ago | ||
Woocommerce orders view shows no items found
Started by: ahmedI
in: Toolset Professional Support
Problem: The issue here is that the user wanted to create a view that lists their woocommerce orders. Solution: This can be done by following the instructions in the link below. |
2 | 5 | 6 years, 3 months ago | ||
Can't set custom rewrite tag in archive slug
Started by: ahmedI in: Toolset Professional Support |
2 | 6 | 6 years, 3 months ago | ||
Relationship of dynamically created child post
Started by: ahmedI
in: Toolset Professional Support
Problem: I am creating a post programmatically and I would like to link that post to another post using a post relationship. Solution: Get the ID of the inserted post and use that in a toolset_connect_posts API call to connect the related posts. //Create dynamic meeting room bookings add_action('cred_submit_complete_2147', 'meeting_booking_times_submit',10,2); function meeting_booking_times_submit($post_id, $form_data) { // Create post object $my_post = array( 'post_title' => 'dynamic', 'post_status' => 'publish', 'post_type' => 'booking-times', ); // Insert the post into the database $my_post_id = wp_insert_post( $my_post ); toolset_connect_posts( 'meeting-room-booking-meeting-room-booking-times', $post_id, $my_post_id ); } Relevant Documentation: |
2 | 3 | 6 years, 6 months ago |