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, 9 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, 2 months ago | ||
Can't set custom rewrite tag in archive slug
Started by: ahmedI in: Toolset Professional Support |
2 | 6 | 6 years, 2 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, 4 months ago | ||
Let the user filter results by modified date
Started by: ahmedI
in: Toolset Professional Support
Problem: I would like to create a custom search View where Users can filter posts by post modified date using datepicker(s). Solution: At this time it is not possible to allow Users to filter a View by post date or modified date. It is possible to filter by a custom field date, so the best approach for now is to use custom code to copy the modified date into a custom field on the post. function copy_modified_date_field( $post_id, $post ){ if ( 'project' == $post->post_type ) { $now = time(); update_post_meta( $post_id, 'wpcf-modified-date', $now ); } } add_action( 'save_post', 'copy_modified_date_field', 20, 2 ); Relevant Documentation: |
2 | 5 | 6 years, 8 months ago |