rafaelL-2
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
get value from parent post on cred notifications
Commencé par : rafaelL-2 in: Toolset Professional Support |
1 | 2 | Il y a 6 années et 4 mois | ||
date fields doesn’t show data if they are before 1950
Commencé par : rafaelL-2
in: Toolset Professional Support
Problem: I am using the last beta version of types 3.0-b1, the types custom date field. If the data is like: 28/01/2018 --> data is shown but if the data is like 28/01/1940 --> no data or strange data like 1/5/9715 Solution: Here is the hot fix: if ( preg_match( '~^[1-9][0-9]*$~', $value ) ) { To: if ( preg_match( '~^-?[1-9][0-9]*$~', $value ) ) { Relevant Documentation: |
2 | 9 | Il y a 6 années et 9 mois | ||
CRED NOTIFICATIONS DOESN'T SHOW PARENT FIELD INFO
Commencé par : rafaelL-2 in: Toolset Professional Support |
2 | 12 | Il y a 6 années et 9 mois | ||
Create child post from CRED
Commencé par : rafaelL-2
in: Toolset Professional Support
Problem: The issue here is that the user wanted to create his child post immediately after creating the parent and also having that child post automatically assigned to the created parent. Solution: Using this format add_filter('cred_success_redirect', 'custom_redirect',10,3); function custom_redirect($url, $post_id, $form_data) { if ($form_data['id']==12) return 'urltochildform?parent_{CPTSLUG}_id='.$post_id; return $url; } You will need to add the child form to a different page and using the redirect hook above to redirect to that page. |
2 | 5 | Il y a 6 années et 9 mois | ||
Limiting to view custom post based on author
Commencé par : rafaelL-2
in: Toolset Professional Support
Problem: Solution: To do this you can follow the instructions in our documentation in the link below. |
2 | 3 | Il y a 6 années et 9 mois | ||
Usin the wpv_filter_query to more than one user
Commencé par : rafaelL-2
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 5 | Il y a 6 années et 10 mois | ||
Add a select custom user field with options automatically generated from a CPT
Commencé par : rafaelL-2
in: Toolset Professional Support
Problem: Solution: It is not documented. Below is some sample code which populates a field called "Choices" with the posts of the custom type "thing". /** * Auto-populate custom User Field */ add_filter( 'wpt_field_options', 'tssupp_populate_user_field', 10, 2 ); function tssupp_populate_user_field( $current_options, $title_of_field ){ if ( 'Choices' == $title_of_field ) { $current_options = array(); $args = array( 'post_type' => 'thing', 'numberposts' => -1 ); $posts = get_posts( $args ); foreach ($posts as $key => $post) { $current_options[] = array( '#title' => $post->post_title, '#value' => $post->ID ); } } return $current_options; } |
2 | 6 | Il y a 6 années et 10 mois | ||
Create a personalized sub search by setting a specific parameter with view
Commencé par : rafaelL-2 in: Toolset Professional Support |
2 | 8 | Il y a 6 années et 10 mois | ||
Pagination controls missing from archive
Commencé par : rafaelL-2
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 7 | Il y a 6 années et 10 mois |