Displaying a list of posts and their post-relationship data
Started by: tomH-11
in: Toolset Professional Support
Quick solution available
2
4
6 years, 2 months ago
tomH-11
Resize of images in Grid View
Started by: GinaM9227
in: Toolset Professional Support
Quick solution available
Problem: I have a View with results shown in a grid. The featured images shown in each grid item have inconsistent heights, making the grid appear misaligned.
Solution: Use the height and width attributes in the featured image shortcode to include the featured image at smaller dimensions. This will work with the responsive elements already in place to display the images at a more predictable size and proportion.
2
14
6 years, 2 months ago
GinaM9227
toolset views and search not working
Started by: GinaM9227
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the user's search filters are not working.
Solution:
In most cases this issue is caused by the filters missing their corresponding query filters in views.
To resolve this it is recommended to delete your filters and re-add them so that the correct query filters can be added.
2
9
6 years, 2 months ago
GinaM9227
Showing table of data from many-many relationship
Started by: huibertS
in: Toolset Professional Support
Quick solution available
2
6
6 years, 2 months ago
huibertS
Split: Calculate distance by Map API and use in view. – How to createa form
Started by: Himanshu Agarwal
in: Toolset Professional Support
2
7
6 years, 2 months ago
Himanshu Agarwal
Recent Table not in Descending order as it should be
Started by: ramez-refaatG
in: Toolset Professional Support
Quick solution available
2
12
6 years, 2 months ago
ramez-refaatG
How to Hide the Children Taxonomies in case no content below them?
Started by: ramez-refaatG
in: Toolset Professional Support
2
8
6 years, 2 months ago
ramez-refaatG
There's 2 issues found – can't import view and imported modules not working
Started by: justinB-3
in: Toolset Professional Support
2
2
6 years, 2 months ago
Shane
Raw view output has a TON of white space around the field
Started by: saint
in: Toolset Professional Support
2
4
6 years, 2 months ago
Waqar
View only query posts that have children
Started by: bobA-2
in: Toolset Professional Support
Quick solution available
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:
https://toolset.com/forums/topic/table-with-child-posts
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:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts
2
3
6 years, 2 months ago
bobA-2
Defining author for filter
Started by: Matthew Quine
in: Toolset Professional Support
Quick solution available
2
4
6 years, 2 months ago
Luo Yang
Cannot Create Woocommerce Archive -“The archive is disabled for this post type”
Started by: rusty
in: Toolset Professional Support
Quick solution available
Problem: I cannot create a WooCommerce Archive from the Toolset Dashboard. I see "the archive is disabled for this post type".
Solution: This appears to be a theme compatibility issue. The client was able to add the following custom code to resolve the problem:
add_action( 'after_setup_theme', function() {
add_theme_support( 'woocommerce' );
} );
2
3
6 years, 2 months ago
rusty
Calculate distance by Map API and use in view.
Started by: Himanshu Agarwal
in: Toolset Professional Support
Quick solution available
2
5
6 years, 2 months ago
Himanshu Agarwal
Resize Loop Editor
Started by: Ben
in: Toolset Professional Support
2
4
6 years, 2 months ago
Ben
Display custom fields created with Toolset in a non-Toolset template for related posts
Started by: duongN-3
in: Toolset Professional Support
Quick solution available
2
7
6 years, 2 months ago
duongN-3