Steve
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 |
---|---|---|---|---|---|
view to show current or future events from The Events Calendar
Started by: Steve
in: Toolset Professional Support
Problem: I would like to use Views to display current or future events created by The Events Calendar, but the custom code I have in place isn't working as expected. Solution: Use the following custom filter manipulation to filter events: toolset_snippet_security_check() or die( 'Direct access is not allowed' ); /** * Filter event query to show future events */ function tssupp_filter_event_query( $view_args, $view_settings, $view_id ){ if ( in_array( $view_id, array( 6090,3499,4451,42214 ) ) ) { // Edit view IDs if ( ! isset( $view_args['meta_query'] ) ) { $view_args['meta_query'] = array(); } $today = strtotime("0:00"); $meta_query = array( 'key' => '_EventStartDate', 'value' => date("Y-m-d H:i:s", $today), 'type' => 'DATETIME', 'compare' => '>=' ); $view_args['meta_query'][] = $meta_query; } return $view_args; } add_filter( 'wpv_filter_query', 'tssupp_filter_event_query', 101, 3 ); Relevant Documentation: |
2 | 15 | 4 years, 6 months ago | ||
create field group to be used on woocommerce category page
Started by: Steve in: Toolset Professional Support |
2 | 5 | 4 years, 10 months ago | ||
cred image uploading and management
Started by: Steve in: Toolset Professional Support |
2 | 3 | 4 years, 10 months ago | ||
link to a map and open a marker
Started by: Steve in: Toolset Professional Support |
2 | 2 | 4 years, 11 months ago | ||
Cant make excerpt more null
Started by: Steve in: Toolset Professional Support |
2 | 3 | 5 years ago | ||
Error in types prevents viewing plugins page
Started by: Steve
in: Toolset Professional Support
Problem: I am unable to access the Plugins page after updating Types, and a fatal error occurs. Solution: Activate Types, go to the core WP updates page, and click "Check for Updates". Then return to the plugins page to verify the workaround. |
2 | 3 | 5 years, 1 month ago | ||
Author Role cant see custom fields
Started by: Steve in: Toolset Professional Support |
3 | 16 | 5 years, 2 months ago | ||
Function that Christian helped me with 2 years ago
Started by: Steve in: Toolset Professional Support |
2 | 8 | 5 years, 3 months ago | ||
Need help with term archive template
Started by: Steve
in: Toolset Professional Support
Problem: The issue here is that the user wanted to display their taxonomy term description. Solution: This can be done by using the shortcode below. |
2 | 9 | 5 years, 3 months ago | ||
views creates 502 on a page and aslo prevents new pages from being creat
1
2
Started by: Steve in: Toolset Professional Support |
2 | 16 | 5 years, 8 months ago | ||
add cred field to uploaded file name
Started by: Steve
in: Toolset Professional Support
Problem: We do employ several views so the jurors can view the application information as well as the uploaded information. Where the pre-pending of the name idea came up is for two situations #1 often the jurors request a zip file of all the images so they can view them locally. Alot of people will view them in Adobe bridge so they can assign star ratings to them and or sort them into folders #2 after the selections are made we attempt to clear the files out of the uploads folder- and so it would be easy to look at a folder and select files starting with a name as a way to sort them from other files uploaded during that period. There could be several hundred such applications for an average call X all the various sizes of images wordpress creates. So theres a lot of files to find. Also if it helps we'd get the name from the cred form itsself- not from the wordpress user record. Solution: There isn't such a built-in feature within Toolset plugins. it needs custom codes, for example: https://toolset.com/forums/topic/add-cred-field-to-uploaded-file-name/#post-958679 Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data |
3 | 6 | 5 years, 9 months ago | ||
taxonomy filter
Started by: Steve in: Toolset Professional Support |
2 | 2 | 6 years ago | ||
Enlarge middle item of a carousel slider View
Started by: Steve
in: Toolset Professional Support
Problem: I would like to create a carousel-style slider View that includes 3 posts per page. I would like to add a specific class to the middle item to make it appear larger than the other 2 items on the page. Solution: Create a View with pagination, that shows 3 posts per page. You'll be able to use the Loop attributes item, index, wrap, pad, and pad-last to apply different styles to each of the 3 posts in a single page. Something like this, where the class is "middle-element": [wpv-layout-start] [wpv-items-found] <wpv-loop wrap="3" pad="true"> [wpv-item index=2] <div class="middle-element">Post content here</div> [wpv-item index=other] <div>Post content here</div> [wpv-item index=pad] <div class="middle-element">Post content here</div> [wpv-item index=pad-last] <div></div> </wpv-loop> [/wpv-items-found] [wpv-no-items-found][wpml-string context="wpv-views"]<strong>Nothing to display</strong>[/wpml-string][/wpv-no-items-found] [wpv-layout-end] Relevant Documentation: |
2 | 6 | 6 years ago | ||
Image uploaded via cred has invalid url
Started by: Steve
in: Toolset Professional Support
Problem: The URLs without https/http protocol + domain name in custom image field Logo Please enter a valid URL address pointing to the image file. Solution: In custom image field created with Types plugin, it accepts only the complete URL format as the field value, for example: https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png With the https/http protocol + domain name + path + file name, but in your screenshot: https://cdn.toolset.com/wp-content/uploads/2018/03/629256-2018_03_28_10_27_39.png?x93925 The https/http protocol + domain name are missing, so it will trigger the warning message you mentioned above: Logo Please enter a valid URL address pointing to the image file. And if you are using CRED form to create the post and setup the image field values, CRED form should not produce such kind of URLs you mentioned above, if the problem still persists, please check the compatibility problem: Deactivate other plugins and switch to wordpress default theme, and test again Relevant Documentation: |
3 | 8 | 6 years, 1 month ago | ||
CRED Commerce workflow – only purchase if checkbox is checked
Started by: Steve
in: Toolset Professional Support
Problem: I have a CRED Commerce form that allows Users to pay a fee and create a post. In some cases, the fee is not required. I would like to use a checkbox in the form to indicate whether or not the fee should be charged. If the checkbox is not checked, the User should not be charged, but the post should still be created. If the checkbox is checked, the User should have the fee product added to their cart with CRED Commerce, and the payment workflow in CRED Commerce should be followed normally. Solution: [cred_generic_field field='addfee' type='checkbox' class='' urlparam=''] { "required":0, "validate_format":0, "checked":0, "default":"1", "label":"Add Handling Fee" } [/cred_generic_field] - Add the following custom code to your child theme's functions.php file: add_action( 'cred_commerce_before_add_to_cart', 'ts_only_buy_if_checked', 10, 2 ); function ts_only_buy_if_checked( $form_id, $post_id ) { $forms = array( 123, 456 ); if( in_array( $form_id, $forms) ) { if( !isset( $_POST['addfee'] ) || $_POST['addfee'] != 1 ) { wp_redirect( 'http://yoursite.com/somepage' ); exit(); } } } Replace 123, 456 with a comma-separated list of any CRED form IDs where you want to apply this modification. Change the URL to redirect the User to some other destination on your site. You have access to the ID of the post that was added or edited in the $post_id variable. Now if the checkbox is not checked, the User will be redirected without placing the item in their cart. You can call get_permalink using the $post_id parameter in your callback to redirect to the post that was created by CRED. Here is the updated redirect code: ... wp_redirect( get_permalink( $post_id ) ); ... Relevant Documentation: |
3 | 8 | 6 years, 2 months ago |