deepS
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 |
---|---|---|---|---|---|
Adding up the values of RFG
Started by: deepS in: Toolset Professional Support |
2 | 7 | 4 years, 11 months ago | ||
Setting as featured image from post image field
Started by: deepS in: Toolset Professional Support |
2 | 4 | 4 years, 11 months ago | ||
Displaying posts with Grandparent relationship
1
2
Started by: deepS in: Toolset Professional Support |
2 | 17 | 4 years, 12 months ago | ||
Ordering Posts based on custom date field with Grand-parent relationship
Started by: deepS in: Toolset Professional Support |
2 | 17 | 5 years ago | ||
Filtering data on the basis of grand parent post relationship
Started by: deepS in: Toolset Professional Support |
2 | 12 | 5 years, 1 month ago | ||
Opening post excerpt link in a separate tab
Started by: deepS in: Toolset Professional Support |
2 | 13 | 5 years, 1 month ago | ||
Re-ordering of Repeatable Field Groups doesn't reflect on the front end
Started by: deepS in: Toolset Professional Support |
3 | 7 | 5 years, 1 month ago | ||
How to display related Posts based on custom fields?
1
2
Started by: deepS in: Toolset Professional Support |
2 | 26 | 5 years, 1 month ago | ||
Date custom fields are not opening up
Started by: deepS in: Toolset Professional Support |
2 | 16 | 5 years, 1 month ago | ||
Related posts based on RFG
Started by: deepS in: Toolset Professional Support |
2 | 6 | 5 years, 1 month ago | ||
Conditions to hide a link
Started by: deepS
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, 1 month ago | ||
Display different between dates
Started by: deepS
in: Toolset Professional Support
Problem: The issue here is that the user wanted to display the difference between two dates, One being Today and the other being a date field from the post. Solution: Naturally you're not able to do this with our toolset plugins however with some custom code you can achieve this. Add the following to your custom functions in Toolset -> Settings -> Custom Code function calculate_date_diff( $atts ) { // Attributes $atts = shortcode_atts( array( 'post_id' => '', ), $atts ); $field = get_post_meta( $atts['post_id'], 'wpcf-last-date-of-application', true ); $userTimezone = new DateTimeZone('Europe/Rome'); $date = new DateTime('now',$userTimezone); $today_date = strtotime($date->format('Y/m/d H:i')); $text = ' day left'; if(((($field - $today_date)/60/60/24)+1)>1){ $text = 'days left'; } return ((($field - $today_date)/60/60/24)+1).' '.$text; } add_shortcode( 'calculate_date_diff', 'calculate_date_diff' ); To use this shortcode just replace the "wpcf-last-date-of-application" with the slug of your custom date field keeping the wpcf- prefix. Also you will need to set your timezone with the line A list of timezones can be seen in the link below. This will ensure that the correct information for Today() is set. Finally the shortcode usage is [calculate_date_diff post_id='[wpv-post-id]'] where you will provide the ID of the post to get the date field. |
2 | 13 | 5 years, 2 months ago | ||
How to set up archives for custom post as homepage?
Started by: deepS
in: Toolset Professional Support
Problem: How can I show an archive of some custom post type as the homepage of my site? Solution: Create a View of this post type and insert it in a custom Page, then set this Page to be the homepage. |
2 | 3 | 5 years, 2 months ago | ||
The paginations are not appearing
Started by: deepS in: Toolset Professional Support |
2 | 13 | 5 years, 2 months ago | ||
Conditional Custom Fields not Working
1
2
Started by: deepS
in: Toolset Professional Support
Problem: I have an RFG that contains fields with conditional display based on other fields in the parent post, but the conditionals don't appear to be working correctly. Solution: Update to the latest versions of Types and Views to get the fix for this issue. |
2 | 25 | 5 years, 3 months ago |