benv-2
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 |
---|---|---|---|---|---|
New created post which is made through a post form, doesn’t show up on front-end
Started by: benv-2
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 12 | 6 years, 4 months ago | ||
Edit profile 'Engineer' on the front-end
Started by: benv-2 in: Toolset Professional Support |
2 | 5 | 6 years, 5 months ago | ||
Add a function to e-mail the content of the Contact React when the user presses Submit
Started by: benv-2
in: Toolset Professional Support
Problem: And is there a way to programmatically add a function to e-mail the content of the Contact React when the user presses Submit? Solution: Since there is O2M relationship between post types "Contact Submission" and "Contact React", so when user create new "Contact React" with Toolset form, you can try this: 1) Create a view to retrieve the related "Contact Submission" post information 2) Display above view in the Email notification content Relevant Documentation: https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/ |
2 | 6 | 6 years, 5 months ago | ||
Respond to a post by e-mail
Started by: benv-2 in: Toolset Professional Support |
2 | 7 | 6 years, 5 months ago | ||
Restrict access to CPTs using User proxy to post relationships
Started by: benv-2 in: Toolset Professional Support |
2 | 4 | 6 years, 5 months ago | ||
Bind a CPT to multiple users and show entry’s for bound users
Started by: benv-2
in: Toolset Professional Support
Problem: I would like to connect Users and Places in a M2M relationship. I have another post type Contact that can be associated with one Place. I would like to create a View of Contacts so each User can see a list of Contacts that are related to the same Places the User is related to. Solution: function get_related_place_ids_for_current_engineer( $atts ) { global $current_user; // get the current user's engineer proxy post $engineer_args = array( 'post_type' => 'engineer', 'post_status' => 'publish', 'author' => $current_user->ID, ); $engineer_posts = get_posts($engineer_args); // there should be a proxy post, but check anyway and exit if not if( !isset($engineer_posts[0])) return; $engineer = $engineer_posts[0]; // get all the places related to this engineer in m2m 'engineer-place' $places = toolset_get_related_posts( $engineer, 'engineer-place', 'parent', 1000000, 0, array(), 'post_id', 'child' ); return implode(', ', $places); } add_shortcode( 'engineer-place-ids', 'get_related_place_ids_for_current_engineer' ); - Modify the slugs and parent / child as needed. [wpv-view name='your-view-slug' placereference='[engineer-place-ids]'] Relevant Documentation: |
2 | 13 | 6 years, 5 months ago |