|
Maintain the taxonomy hierarchy in a
Started by: pierreV-2
in: Types Community Support
Quick solution available
Problem:
How to get a hierarchical view of taxonomy, when inserting [wpv-post-taxonomy type="xyz"] into a Visual Editor Cell or inside a View.
Solution:
1. You would need to create a custom shortcode for this purpose (e.g. [display_post_tax_terms_hierarchical] )
Please add the following code in your theme’s functions.php file:
/**
* Display taxonomy terms in hierarchical order.
*
* Advised by WP Types - Toolset
*/
function list_hierarchical_terms($atts) {
global $post;
$taxonomy = $atts['taxonomy_name'];
$separator = $atts['separator'];
$terms = wp_get_object_terms( $post->ID, $taxonomy, array( "fields" => "ids" , "orderby" => "term_id") );
if( $terms ) {
$terms = trim( implode( ',', (array) $terms ), ' ,' );
$output = wp_list_categories( 'title_li=&taxonomy=' . $taxonomy . '&include=' . $terms."&hierarchical=1"."&separator=".$separator."&echo=0&style=none&order=DESC");
$output = substr(trim($output), 0, -1);
$str_array = explode($separator, $output);
if(isset($str_array) && count($str_array)) {
$str_array_rev = array_reverse( $str_array );
$output = implode($separator,$str_array_rev);
}
return $output;
}
}
add_shortcode( 'display_post_tax_terms_hierarchical', 'list_hierarchical_terms' );
2. Then, add the below shortcode in Visual Editor cell or in a View or Content template:
[display_post_tax_terms_hierarchical taxonomy_name="location" separator=","]
Another solution: https://toolset.com/forums/topic/display-wpv-post-taxonomy-and-hierarchical-taxonomies/#post-410285
|
|
2 |
13 |
7 years, 6 months ago
pierreV-2
|
|
Full screen slider
Started by: johanL-2
in: Types Community Support
Quick solution available
|
|
2 |
23 |
7 years, 7 months ago
johanL-2
|
|
Problem with drop down menu during creating Archive layout
Started by: sinisaB
in: Types Community Support
Quick solution available
|
|
2 |
3 |
7 years, 7 months ago
sinisaB
|
|
In my plugins only Types are showing registered. All else shows you must, etc.
Started by: cindyB
in: Types Community Support
Quick solution available
Problem:
The issue here is that the customer was only seeing types are their only registered plugin.
Solution:
One solution for this is that you can re-register the plugin by removing the previous site key and re-generating a new one for the site.
|
|
2 |
3 |
7 years, 7 months ago
cindyB
|
|
Display product price and other information on a single line
Started by: adamS-15
in: Types Community Support
Quick solution available
Problem: When I use the [wpv-woo-product-price] shortcode to display my product price, it always appears on a single line. I would like to include information on the same line.
Solution: Use CSS to set the .price paragraph to be display:inline; by adding a class to a wrapper element for specific style targeting. For example:
<!-- html -->
<div class="inline-price-wrapper">[wpv-woo-product-price]</div>
/* CSS */
.inline-price-wrapper .price {
display: inline;
}
Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/
|
|
2 |
10 |
7 years, 7 months ago
adamS-15
|
|
Custom styling for specific archive level – Can Toolset do this?
Started by: inesO
in: Types Community Support
Quick solution available
|
|
2 |
3 |
7 years, 8 months ago
inesO
|
|
tabs displaying
Started by: tonyll
in: Types Community Support
Quick solution available
Problem:
In layout, all tabs appears on the same page, the first then the second under and the third.
Solution:
Set the "Visual effect when switching tabs" on immediate switch. And it will resolve the issue.
Relevant Documentation:
|
|
2 |
4 |
7 years, 8 months ago
tonyll
|