Pat
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 |
---|---|---|---|---|---|
Filtering post by date field
Started by: Pat in: Toolset Professional Support |
1 | 2 | 6 years, 2 months ago | ||
Hierarchical taxonomies
Started by: Pat in: Toolset Professional Support |
2 | 9 | 6 years, 3 months ago | ||
Exact search matching
Started by: Pat in: Toolset Professional Support |
2 | 2 | 6 years, 4 months ago | ||
How to integrate a link to previous and next post inside a Forms (modification)
1
2
Started by: Pat
in: Toolset Professional Support
Problem: I have a Form that is uesd to edit posts. I would like to include a next and previous post link so that I can edit the next or previous post easily without returning to a list of posts. Solution: Create a paginated, filtered View that displays only 1 post, using AJAX pagination updates. In the Loop Output editor for this View, place an Edit Post Form. Place this View on a custom Page. In another custom Page, place a filtered View that shows all the posts. Next to each post, create a custom edit post link that directs the User to the other custom Page, using a pagination URL parameter based on the loop iteration. add_shortcode( 'loop-iteration', function( $atts ){ global $loop_n; if ( !isset( $loop_n ) ) { $loop_n = 1; return $loop_n; } $loop_n++; if ( !isset( $atts['n'] ) ) { // no nth parameter, just return the current index return $loop_n; } else { $remainder = ( $loop_n + 1 ) % $atts['n']; return ( $remainder == 0 ); } }); <a href="/view-2-page?wpv_paged=[loop-iteration]">[wpv-post-title]</a> |
3 | 18 | 6 years, 4 months ago | ||
Add a Bootstrap Glyphicon in the submit text
Started by: Pat
in: Toolset Professional Support
Problem: The issue here is that the user wanted to add a Glyphicon to the toolset forms submit button. Solution: You will possibly need to use the method below in order to achieve it. |
2 | 9 | 6 years, 4 months ago | ||
Conditional output based on child post
1
2
Started by: Pat
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 16 | 6 years, 5 months ago | ||
Image rotation in Cred frontend
Started by: Pat in: Toolset Professional Support |
2 | 9 | 6 years, 5 months ago | ||
Add the paypal IPN, order number, and payment date to a notification
Started by: Pat
in: Toolset Professional Support
Problem: I would like to add the PayPal IPN, the WooCommerce Order ID, and the payment date to a Forms email notification. Solution: add_filter('cred_body_notification_codes', 'custom_generic_field_notification'); add_filter('cred_subject_notification_codes', 'custom_generic_field_notification'); function custom_generic_field_notification( $defaultPlaceHolders ) { $order_id = ''; $completed_date = ''; $date_format = 'Y-m-d'; if( isset($_REQUEST['post'][0])) { $order_id = $_REQUEST['post'][0]; $completed_date = date($date_format, get_post_meta($order_id, '_date_completed', true)); } $newPlaceHolders = array( '%%ORDER_ID%%' => $order_id, '%%COMPLETED_DATE%%' => $completed_date, ); return array_merge($defaultPlaceHolders, $newPlaceHolders ); } I'm not sure how the PayPal IPN is stored in the database, but you can use the Order ID to query postmeta as needed. Relevant Documentation: |
2 | 7 | 6 years, 5 months ago | ||
Conditional display of the submit button in a CRED user form
Started by: Pat
in: Toolset Professional Support
Problem: I would like to hide the "submit" button in a CRED form using a conditional that tests whether or not other fields are filled in. Solution: Use the CRED conditional group feature in the Generic Fields button to set up front-end conditional display in a CRED form. Relevant Documentation: |
2 | 5 | 6 years, 6 months ago | ||
Current post title in CRED notification
Started by: Pat
in: Toolset Professional Support
Problem: I have a CRED form that creates new posts. I have placed the form in a template and I would like to capture the title of the post where the CRED form is shown, and include that in an email notification. Solution: You can use a generic field in the CRED form and set the value of the generic field to the title of the current post: [cred_generic_field field='currentpagetitle' type='hidden' class='' urlparam=''] { "required":0, "validate_format":0, "default":"[wpv-post-title id='$current_page']", "persist":1 } [/cred_generic_field] Then you can access the currentpagetitle field in an email notification using a custom placeholder %%CURRENT_PAGE_TITLE%% by adding the following code to functions.php: add_filter('cred_body_notification_codes', 'custom_generic_field_notification'); add_filter('cred_subject_notification_codes', 'custom_generic_field_notification'); function custom_generic_field_notification( $defaultPlaceHolders ) { $newPlaceHolders = array( '%%CURRENT_PAGE_TITLE%%' => $_REQUEST['currentpagetitle'] ); return array_merge($defaultPlaceHolders, $newPlaceHolders ); } Relevant Documentation: |
2 | 3 | 6 years, 6 months ago | ||
Retreive relationship between order / product and CRED commerce postype
Started by: Pat in: Toolset Professional Support |
2 | 4 | 6 years, 6 months ago | ||
Run installer notice in the admin area does not suppress
Started by: Pat in: Toolset Professional Support |
2 | 5 | 6 years, 6 months ago | ||
Product category name not appearing in the archive category product page
Started by: Pat in: Toolset Professional Support |
2 | 4 | 6 years, 6 months ago | ||
Conditional output
Started by: Pat
in: Toolset Professional Support
Problem: I need to use this conditional output : define if the current user is author of a "subscription" post and if yes, if the subscription post date is between the "variable" custom fields start-date and end-date. Solution: The client fix it with custom shortcode, see his post: Relevant Documentation: |
3 | 9 | 6 years, 7 months ago | ||
Repeating fields with term meta
Started by: Pat
in: Toolset Professional Support
Problem: The issue here is that the user wanted to display each individual fields of a repeatable fields. Solution: This can be done by using our [wpv-for-each] shortcode. [wpv-for-each field="wpcf-my-field"] <div class="col-sm-4 img">[types field="my-field"][/types]</div> [/wpv-for-each] This should allow you to display each individual item of a repeatable field. |
2 | 13 | 6 years, 7 months ago |