Ido Angel
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 |
---|---|---|---|---|---|
date cred field acts strangely inside
Started by: Ido Angel in: Toolset Professional Support |
2 | 4 | 5 years, 2 months ago | ||
script with toolset shortcodes
Started by: Ido Angel
in: Toolset Professional Support
Problem: How to avoid conversion of quotation marks into HTML entities, when used in a Views output. Solution: Suggested to either: 1. Include suppress_filters="true" attribute in the "wpv-post-body" shortcode [wpv-post-body view_template="slug-of-the-content-template" suppress_filters="true"] OR 2. Skip the use of "wpv-post-body" shortcode and include the loop item's content directly in "wpv-loop" tag: <wpv-loop> ..... </wpv-loop> Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body |
2 | 3 | 5 years, 2 months ago | ||
allowing “save as draft”
Started by: Ido Angel
in: Toolset Professional Support
Problem: The issue here is that the user wanted to add a status option to their frontend form so that the post can be saved as a draft or publish based on the user's choice. Solution: [cred_generic_field type='select' field='order_stat' class='order-stat'] { "required":0, "default":["draft"], "options":[{"value":"draft","label":"draft"},{"value":"publish","label":"publish"}] } [/cred_generic_field] The user will then select the status they want to submit the post as. From there we can use a Cred hook to hook into the save post and then set the status there. add_action('cred_submit_complete', 'my_success_action',10,2); function my_success_action($post_id, $form_data) { // if a specific form if ($form_data['id']==346) { if (isset($_POST['order_stat'])) { // add it to saved post meta $my_post = array( 'ID' => $post_id, 'post_status' => $_POST['order_stat'], ); wp_update_post($my_post); } } } Now you will replace the my_custom_field with the slug of the generic field that you made. Note it would be best if this was a select field where the value and the display name is also the same. |
2 | 11 | 5 years, 2 months ago | ||
select box with users' custom fields
Started by: Ido Angel in: Toolset Professional Support |
2 | 6 | 5 years, 2 months ago | ||
When creating a new post with cred, select author
Started by: Ido Angel in: Toolset Professional Support |
2 | 7 | 5 years, 2 months ago | ||
show field only if a year HASN'T passed from a date within another field
Started by: Ido Angel in: Toolset Professional Support |
2 | 4 | 5 years, 2 months ago | ||
Cred form for repeatable group – only allow to add to current post
Started by: Ido Angel
in: Toolset Professional Support
Problem: Solution: In this case, the client was including the forms to add repeatable field groups directly in the output of a View, in which case the parent post could be specified by using the wpv-post-id shortcode to provide the default value for the selector. Relevant Documentation: |
2 | 7 | 5 years, 2 months ago | ||
hierarchy mix? relationship? not sure what to use and how..
1
2
Started by: Ido Angel in: Toolset Professional Support |
2 | 20 | 5 years, 4 months ago | ||
repeatable fields in post form
Started by: Ido Angel in: Toolset Professional Support |
2 | 3 | 5 years, 4 months ago | ||
populate a field with post_id
Started by: Ido Angel
in: Toolset Professional Support
Problem: The main issue being described here is that the user wanted to update their custom field using php. Solution: To do this you will need to use the function in the link below. A practical example of this can be seen below. function save_post_func_2134( $post_id ) { $post_type = 'doctor-order'; if ( $post_type == get_post_type ( $post_id ) ) { $my_post = array( 'ID' => $post_id, 'order-id' => 'dts-' . $post_id, 'post_title' => 'dts-' . $post_id ); update_post_meta( $post_id, 'wpcf-order-id', 'dts-'.$post_id); remove_action('save_post', 'save_post_func_2134'); wp_update_post( $my_post ); } } add_action( 'save_post', 'save_post_func_2134' ); |
2 | 3 | 5 years, 4 months ago | ||
filter according to 2 categories – one default and the other by shortcode
Started by: Ido Angel in: Toolset Professional Support |
2 | 3 | 5 years, 4 months ago | ||
post group access doesn’t work in non-default languages
Started by: Ido Angel
in: Toolset Professional Support
Problem: This page is set to show a different layout for "guests" - showing the login screen. it works only in english (the default language). when you switch to french or german, you can actually see the content of the page and the access control for the post group doesn't work anymore. Solution: I suggest you setup one same layout for all user role, in this layout display a visual editor cell, and use Access shortcode [types_access] to display different contents for different user role. Relevant Documentation: https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/ |
2 | 5 | 5 years, 5 months ago | ||
when cached, access settings for guest users is working only after hard refresh
Started by: Ido Angel in: Toolset Professional Support |
2 | 3 | 5 years, 5 months ago | ||
limit date picket dates/times
Started by: Ido Angel in: Toolset Professional Support |
2 | 11 | 5 years, 5 months ago | ||
excerpt from custom field multilines – with breaks
Started by: Ido Angel
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution, in this case with the following reply: Relevant Documentation: |
2 | 5 | 5 years, 5 months ago |