patrizioT
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 |
---|---|---|---|---|---|
Filter post in form relationship
Started by: patrizioT in: Toolset Professional Support |
2 | 6 | 2 years, 10 months ago | ||
Connect two posts without form relationship
Started by: patrizioT in: Toolset Professional Support |
3 | 4 | 2 years, 10 months ago | ||
Dynamic link
Started by: patrizioT in: Toolset Professional Support |
1 | 2 | 2 years, 10 months ago | ||
Delete all relationship link
Started by: patrizioT in: Toolset Professional Support |
1 | 3 | 3 years, 3 months ago | ||
wpv-post-link in a view problem with link
Started by: patrizioT in: Toolset Professional Support |
2 | 3 | 3 years, 3 months ago | ||
Delete post in relationship
Started by: patrizioT in: Toolset Professional Support |
3 | 10 | 3 years, 3 months ago | ||
Show second relationship info
Started by: patrizioT
in: Toolset Professional Support
Problem: I have 3 custom post types. A is related with B, and A is related with C. I have a view with C information and i want to show also B info that are related to A. Solution: Depending on the types of post relationships, you may also need a View of post type A. Relevant Documentation: |
2 | 4 | 3 years, 4 months ago | ||
Create versioning of the custom post type
Started by: patrizioT in: Toolset Professional Support |
2 | 12 | 3 years, 5 months ago | ||
Disconnect relationship
Started by: patrizioT
in: Toolset Professional Support
Problem: I have two post type with a relationship and i need a button on front-end for disconnect the relationships. In this case is one-to-one, but i will need also for other cases (one-to-many and many-to-many). I have added a "fields and text" and added a Form... but I can't find a delete relationship. Solution: It needs a post view, for example: https://toolset.com/forums/topic/disconnect-relationship/#post-2075473 Relevant Documentation: |
2 | 12 | 3 years, 5 months ago | ||
Can’t find Table layout in View block – Design
Started by: patrizioT
in: Toolset Professional Support
Problem: I need to make a table trough my Archive Loop, but i can't find on View block - Design the "Table" Style. Solution: If you need Bootstrap in your website, then you can try the option "Grid". If you don't need Bootstrap in your website, please try these: Relevant Documentation: |
2 | 9 | 3 years, 5 months ago | ||
Monthly pagination not working properly
Started by: patrizioT
in: Toolset Professional Support
Problem: I have a View of posts that include a custom date field. I would like to sort and paginate the list by month, according to the custom date field. I would like to creaet my own custom "Next Month" and "Previous Month" pagination links. Solution: Add a date filter as described in the related ticket. Then add the following code to your functions.php file: function monthly_pag_filter_query($query, $view_settings, $view_id ) { $views = array( 562 ); $date_field_slug = 'data'; $defaults = array( 'meta_query'=> array( 'key'=>'wpcf-' . $date_field_slug ) ); if( in_array( $view_id, $views ) ){ $mm = isset($_REQUEST["mm"]) ? $_REQUEST["mm"] : date("m-Y", time()); $mq = isset( $query['meta_query'] ) ? $query['meta_query'] : $defaults; $query['meta_query'] = $mq; foreach($query['meta_query'] as $i => $meta_query) { if (isset($meta_query['key']) && $meta_query['key'] == 'wpcf-' . $date_field_slug ) { $start = strtotime("1-{$mm} 00:00:00"); $numdays = date("t", $start); $end = strtotime("$numdays-{$mm} 23:59:59"); $meta_query['value'] = "$start,$end"; $meta_query['compare'] = 'BETWEEN'; $query['meta_query'][$i] = $meta_query; } } } return $query; } add_filter('wpv_filter_query', 'monthly_pag_filter_query', 12, 3); add_shortcode("next-month", "get_next_month"); function get_next_month($atts) { $mm = isset($_REQUEST["mm"]) ? $_REQUEST["mm"] : date("m-Y", time()); $nextmonth = date("m-Y", strtotime("1-{$mm} +1 month")); return $nextmonth; } add_shortcode("prev-month", "get_prev_month"); function get_prev_month($atts) { $mm = isset($_REQUEST["mm"]) ? $_REQUEST["mm"] : date("m-Y", time()); $prevmonth = date("m-Y", strtotime("1-{$mm} -1 month")); return $prevmonth; } Relevant Documentation: |
2 | 13 | 5 years, 8 months ago |