bobA-2
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 |
---|---|---|---|---|---|
Display only one term with Taxonomy ShortCode
Started by: bobA-2
in: Toolset Professional Support
Problem: Solution: You can create a View, choose to query Taxonomies and add a Query filter to query terms as assigned to the post where the view is inserted to. Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#vf-153472 See https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/ for more details |
2 | 3 | 5 years, 3 months ago | ||
Timestamp as Date format in Yoast Seo Title?
Started by: bobA-2 in: Toolset Professional Support |
2 | 2 | 5 years, 6 months ago | ||
Taxonomy view filtering
Started by: bobA-2 in: Toolset Professional Support |
2 | 3 | 5 years, 9 months ago | ||
Previous Next Month pagination almost working
Started by: bobA-2
in: Toolset Professional Support
Problem: I have been testing out the custom PHP codes: Only issue is that on initial page load it shows posts from all months and not only the ones from the current month. From what I read in Waqas final reply it seems the updated code in his post should support current month on intial view? Solution: There are some PHP errors in the custom PHP codes, I suggest debug the codes line by line manually. Relevant Documentation: |
3 | 11 | 5 years, 9 months ago | ||
Parametric search filter date with types custom datetime field?
Started by: bobA-2
in: Toolset Professional Support
Problem: Allow user to search with date only when there is a date time picker. Solution: Actually no it is not possible. The reason is because a datetime custom field and just a date gives 2 different values being stored in the database. As you may not be away the dates are stored in the database as an epoch or unix timestamp. This means they are stored as numbers and not actual human readable dates. Take a look at the link below. This is a simple converter to clear things up. So a datetime will store the time as well. Lets say my current datetime is February 14, 2019 9:52 AM, this will convert to 1550155920 While the date only will convert to 1550120400 As you can see both are representative of the same date however the Date only will always default to 12:00 AM as this signals the start of a new date. So technically speaking it is a Datetime with just a fixed time. If you look at the comparisons an how they are done, If a user uses date filter for today they will only get posts that have a numeric value equal to "1550120400" even though posts who have values of "1550155920" are still on the same day but because these numeric values are different it will not show up. |
2 | 5 | 5 years, 10 months ago | ||
Clean edit post window custom template
Started by: bobA-2 in: Toolset Professional Support |
2 | 2 | 5 years, 10 months ago | ||
Any way to show description (images) in a taxonomy checkboxes filter?
Started by: bobA-2 in: Toolset Professional Support |
2 | 2 | 5 years, 11 months ago | ||
wpv-no-items-found message in wpv-filter-controls section?
Started by: bobA-2 in: Toolset Professional Support |
2 | 2 | 5 years, 11 months ago | ||
View only query posts that have children
Started by: bobA-2
in: Toolset Professional Support
Problem: I am using a View of child posts nested inside a View of parent posts to display parent and child post information. I would like to filter out parents that do not have any children. Solution: There is no built-in way to filter out childless parent posts, so the solution requires custom code. Another ticket in the forum discusses this approach: add_filter('wpv_filter_query', 'jobs_with_bewerbungs_func', 101, 3); function jobs_with_bewerbungs_func($query, $view_settings, $view_id) { $views = array( 84 ); $relationship_slug = 'job-bewerbung-multis'; $parent_type_slug = 'job'; // you should not edit anything below this line if ( in_array( $view_id, $views ) ) { $ids = array(); $parents_args = array( 'post_type' => $parent_type_slug, 'numberposts' => -1, ); $parents = get_posts( $parents_args ); foreach($parents as $parent) { $children = toolset_get_related_posts( $parent->ID, $relationship_slug, 'parent', 1000000, 0, array(), 'post_id', 'child' ); if( !is_array($children) || count($children) < 1 ) { array_push( $ids, $parent->ID ); } } $query['post__not_in'] = isset($query['post__not_in']) ? $query['post__not_in'] : array(); $query['post__not_in'] = array_merge($query['post__not_in'], $ids ); } return $query; } Relevant Documentation: |
2 | 3 | 5 years, 11 months ago | ||
High CPU usage with Views on VPS hosting but not on shared hosting?
Started by: bobA-2
in: Toolset Professional Support
Problem: I am seeing high CPU usage on VPS hosting but not on shared hosting. It seems to be related to Views. Solution: These are usually the easiest things to try. Beyond that, it comes down to inspecting each View on the page to determine if there is a bottleneck in one View, or if it's the combination of all Views at once. |
2 | 3 | 5 years, 12 months ago | ||
Conditional Today() when the custom date field contains time also?
Started by: bobA-2
in: Toolset Professional Support
Problem: I would like to create a conditional that tests the value of a custom date field. If the date is today - the current date - then I would like to display some content. However, testing the value against TODAY() does not seem to work. Solution: You must create a conditional that tests if the date value is between the end of yesterday - TODAY() - and the beginning of tomorrow - FUTURE_DAY(1). [wpv-conditional if="( $(wpcf-birthdate) gte 'TODAY()' ) AND ( $(wpcf-birthdate) lt 'FUTURE_DAY(1)' )"] Happy Birthday! It's today! [/wpv-conditional] Relevant Documentation: |
2 | 5 | 6 years ago | ||
Ultimate CSV Importer Pro and custom field data import with relationship
Started by: bobA-2 in: Toolset Professional Support |
1 | 2 | 6 years ago | ||
Repeatable fields date time sorting?
Started by: bobA-2 in: Toolset Professional Support |
1 | 2 | 6 years ago | ||
Possible to have edit link that show edit form inline?
Started by: bobA-2 in: Toolset Professional Support |
2 | 2 | 6 years, 1 month ago | ||
Possible to do secondary sorting based on custom taxonomy has values
Started by: bobA-2 in: Toolset Professional Support |
2 | 2 | 6 years, 3 months ago |