Show image or button if there are content
Started by: avansisI-2
in: Toolset Professional Support
2
11
4 years, 9 months ago
avansisI-2
Duplicted View returns no results if date filter is set.
Started by: Thorworx
in: Toolset Professional Support
2
9
4 years, 9 months ago
Thorworx
Show all posts on personal area from a specific category selected by user on CTF
Started by: avansisI-2
in: Soporte profesional de Toolset
Quick solution available
Problem:
The user would like to display posts from the categories where the user has already posts assigned to it.
Solution:
This will need custom code. This will need to use the wpv_filter_query filter to modify the view's query taxonomy parameters.
Check this sample code:
add_filter( 'wpv_filter_query', 'posts_from_user_taxonomy_terms',99,3 );
function posts_from_user_taxonomy_terms( $query_args,$views_settings, $view_id) {
if ($view_id == 833){ // replace this with the view's ID
$user_posts = get_posts( array(
'author' => get_current_user_id(),
'fields' => 'ids',
'post_type' => array('evento', 'empresa'),
'posts_per_page' => -1
) );
$terms = get_terms(
array(
'taxonomy' => 'category',
'object_ids' => $user_posts,
)
);
$terms_ids = array();
foreach($terms as $term) {
$terms_ids[] = $term->term_id;
}
$query_args['tax_query'] = array(
array(
'taxonomy' => 'category',
'terms' => $terms_ids,
),
);
}
return $query_args;
}
Relevant Documentation:
2
13
4 years, 9 months ago
avansisI-2
Current Internet Explorer 11 on PC breaks Grid, Image and Gallery blocks?
Started by: martinE-4
in: Toolset Professional Support
Quick solution available
2
4
4 years, 9 months ago
martinE-4
I can set in a view, with the block editor I can set a maximum height , and not a width? so the images are resized
Started by: avansisI-2
in: Toolset Professional Support
Quick solution available
Problem: I would like to display an image using a Toolset Image Block in the loop of a View. The loop has 3 columns, and I would like the image to fill the width of one of the columns.
Solution: Be sure to select an image size that is large enough to fill the available space, then use the Display Width and Display Height settings to provide a percentage-based width and height value.
2
5
4 years, 9 months ago
avansisI-2
Two Custom post type relationship
Started by: curtisT-2
in: Toolset Professional Support
2
2
4 years, 9 months ago
Christian Cox
Disable preview while edit a View in Blocks
Started by: fernandoS-3
in: Toolset Professional Support
Quick solution available
Problem:
The user would like to disable the view's preview in the blocks editor.
Solution:
That's a WordPress feature that is not possible to disable yet.
2
8
4 years, 9 months ago
fernandoS-3
Error "The ancestors attribute is missing"
Started by: matthewL-7
in: Toolset Professional Support
2
4
4 years, 9 months ago
Jamal
missing product link in product image block
Started by: alexandreL-2
in: Toolset Professional Support
2
11
4 years, 9 months ago
alexandreL-2
Advice For Rebuilding Existing Toolset site
Started by: CharlesB2907
in: Toolset Professional Support
3
16
4 years, 9 months ago
Jamal
Adding dynamic content to heading
Started by: ezraE
in: Toolset Professional Support
2
2
4 years, 9 months ago
Luo Yang
Conditional block breaks when switching to Raw code editor and back
Started by: Alexander Rothschild
in: Toolset Professional Support
2
2
4 years, 9 months ago
Christian Cox
using toolset block field and text, I cannot display single element of array
Started by: edgarF-2
in: Toolset Professional Support
2
5
4 years, 9 months ago
Christian Cox
Compatibility issue with HappyForms
Started by: matthewL-7
in: Toolset Professional Support
3
6
4 years, 9 months ago
Christian Cox
Views and Search Bars
Started by: konstantinosM
in: Toolset Professional Support
2
3
4 years, 9 months ago
konstantinosM