Sort by not working, Query filter knocks out Custom filter
Started by: smileBeda
in: Toolset Professional Support
2
5
4 years, 10 months ago
Waqar
Query Filter by Empty Image custom field
Started by: hpJ
in: Toolset Professional Support
Quick solution available
2
4
4 years, 10 months ago
hpJ
Conditional Colour in View based on which Post Type
Started by: JoelK2744
in: Toolset Professional Support
Quick solution available
2
5
4 years, 10 months ago
JoelK2744
Creating an image grid using a View
Started by: Pete
in: Toolset Professional Support
Quick solution available
2
3
4 years, 10 months ago
Pete
Toolset plugin cannot connect to toolset dot com
Started by: Ed
in: Toolset Professional Support
2
5
4 years, 10 months ago
Ed
All post pages showing same info
Started by: tonyf-3
in: Toolset Professional Support
2
3
4 years, 10 months ago
tonyf-3
Best practice for setting up an LMS for blended learning
Started by: joeC-5
in: Toolset Professional Support
2
5
4 years, 10 months ago
joeC-5
Trying to count childeren of a parent
Started by: wesselK
in: Toolset Professional Support
Quick solution available
Problem: I would like to create a custom shortcode that displays the number of child posts for the current parent post. I'm referencing an older ticket but it does not seem to work as expected.
Solution: Instead of the _wpcf_belongs_slug_id postmeta key, you must use the new post relationships API with post relationships created in Types 3.0+. A custom shortcode solution is available.
add_shortcode( 'tssupp-connections', function( $atts = [] ){
// provide defaults
$atts = shortcode_atts(
array(
'relationship' => '',
),
$atts
);
global $post;
$count = 0;
$relationship = toolset_get_relationship( $atts['relationship'] );
if ( $relationship ) {
$parent = $relationship['roles']['parent']['types'][0];
$child = $relationship['roles']['child']['types'][0];
$type = $post->post_type;
$origin = ( $parent == $type ) ? 'parent' : 'child';
// Get connected posts
$connections = toolset_get_related_posts( $post->ID, $atts['relationship'], array(
'query_by_role' => $origin,
'role_to_return' => 'other',
'need_found_rows' => true )
);
$count = $connections['found_rows'];
}
return $count;
});
Use it like this:
Number of children: [tssupp-connections relationship="project-task"][/tssupp-connections]
Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts
2
3
4 years, 10 months ago
wesselK
Adding social login to login form
Started by: kelvinL-2
in: Toolset Professional Support
2
4
4 years, 10 months ago
Minesh
Custom Search
Started by: ericC-16
in: Toolset Professional Support
2
2
4 years, 10 months ago
Waqar
keep showing messge after submiting the form
Started by: salimA
in: Toolset Professional Support
2
7
4 years, 10 months ago
salimA
Pagination not work, jquery error
Started by: kelvinL-2
in: Toolset Professional Support
2
4
4 years, 10 months ago
kelvinL-2
view search, layout and map custom design
Started by: jakobd-2
in: Toolset Professional Support
Quick solution available
Problem:
How to display Views block search form, search result + map in different places.
Solution:
Here are details steps:
1) Create a page, for example "test-page-1"
Add a view block, display the search form + search result
2) Create another page, for example "test-page-2"
Display three blocks:
- View block, display only search form
- View block, display only the search result
- Map block, "source for the maker" choose above view block
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render
2
5
4 years, 10 months ago
jakobd-2
Featured Image Required (without code?)
Started by: Juice Rocket®
in: Toolset Professional Support
2
2
4 years, 10 months ago
Shane
Display Conditionally if Term Assigned to Taxonomy using Blocks
Started by: JoelK2744
in: Toolset Professional Support
Quick solution available
Problem: I would like to display some content conditionally if any term from a specific taxonomy is assigned to the current post.
Solution: Use a conditional block and turn on the advanced condition editor. Add the following condition:
('[wpv-post-taxonomy type="book-tax" format="slug" ]' ne '')
Replace book-tax with the slug of the taxonomy.
2
6
4 years, 10 months ago
JoelK2744