|
Hierarchical post types Rewrite Rule
Started by: Alessandro
in: Toolset Professional Support
|
|
2 |
2 |
7 years, 2 months ago
Christian Cox
|
|
class-installer-dependencies.php error
Started by: jamesF-5
in: Toolset Professional Support
|
|
2 |
6 |
7 years, 2 months ago
Minesh
|
|
Custom taxonomy output
Started by: JorgeE7101
in: Toolset Professional Support
Quick solution available
Problem: I would like to apply different WordPress Archives to each level of hierarchy in a custom taxonomy.
Solution: Use the wpv_filter_force_wordpress_archive filter to programmatically specify different WordPress Archives based on the taxonomy term hierarchy level:
function get_tax_level($id, $tax){
$ancestors = get_ancestors($id, $tax);
return count($ancestors)+1;
}
add_filter( 'wpv_filter_force_wordpress_archive', 'switch_tax_archive_by_level', 30, 2 );
function switch_tax_archive_by_level( $wpa_assigned, $wpa_loop ) {
$wpa_to_apply = $wpa_assigned;
$tax = get_queried_object() ? get_queried_object()->taxonomy : null;
if ($tax == 'viagens') {
$current_term_level = get_tax_level(get_queried_object()->term_id, get_queried_object()->taxonomy);
if ($current_term_level == 1) {
// show top-level archive
$wpa_to_apply = 1761;
} else if ($current_term_level == 2) {
// show mid-level archive
$wpa_to_apply = 1722;
} else {
// show third-level archive
$wpa_to_apply = 1722;
}
} elseif ( is_home() ) {
$wpa_to_apply = 1771;
}
return $wpa_to_apply;
}
Relevant Documentation: https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_force_wordpress_archive
|
|
2 |
24 |
7 years, 2 months ago
JorgeE7101
|
|
Customize Taxonomy Admin UI – Add permissions, fields and other functionality
Started by: kevinS-24
in: Types Community Support
|
|
2 |
3 |
7 years, 2 months ago
kevinS-24
|
|
Filter taxonomy terms
Started by: JorgeE7101
in: Toolset Professional Support
Quick solution available
Problem: I would like to show a list of descendant taxonomy term links on each taxonomy term archive.
Solution: Use a taxonomy View and filter that View using a term parent filter, where the parent is the current page. Output a link to each term archive in the Loop Output editor.
Relevant Documentation: https://toolset.com/documentation/user-guides/create-custom-taxonomies/
|
|
2 |
3 |
7 years, 2 months ago
JorgeE7101
|
|
Setting Parent Post Taxonomy Terms for Custom Field in Child Post
Started by: Anonymous
in: Toolset Professional Support
|
|
2 |
3 |
7 years, 2 months ago
Anonymous
|
|
using post Field groups for Terms Fields
Started by: Akhil
in: Toolset Professional Support
|
|
2 |
7 |
7 years, 2 months ago
Akhil
|
|
Taxomony as required for CPT
Started by: Akhil
in: Toolset Professional Support
|
|
2 |
2 |
7 years, 2 months ago
Minesh
|
|
url parameter options
Started by: Akhil
in: Toolset Professional Support
Quick solution available
Problem:
can I check IF the name for the URL PARAMETER is fixed as " wpv-wpcf-field-name " ?
OR I can just rename it as I like ?
Solution:
No, the URL parameter name isn't fixed, you can choose other name if you want, and if you modify the URL parameter name, you will need to change the attribute "url_param" in shortcode [wpv-control] too as same name
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-control
|
|
2 |
4 |
7 years, 2 months ago
Akhil
|
|
Custom taxonomy and wordpress categories
Started by: JorgeE7101
in: Toolset Professional Support
Quick solution available
Problem:
1. Should I use wordpress Categories and Tags and mix it with Types taxonomy or should ONLY use the custom taxonomy?
2. should I use a custom taxonomy for countries, another for continents, another for cities? Or should it be hierarchical?
Solution:
1. These can be mixed together without any issue.
2. Please create a hierarchical taxonomy its better, structure would be like:
Trips (Custom Taxonomy)
> Continent (term / category)
>> Country (child term / category)
Relevant Documentation:
|
|
2 |
9 |
7 years, 2 months ago
JorgeE7101
|
|
Taxonomy url structure
Started by: JorgeE7101
in: Toolset Professional Support
Quick solution available
|
|
2 |
3 |
7 years, 2 months ago
JorgeE7101
|
|
Custom taxonomy permalink
Started by: arisF
in: Types Community Support
|
|
2 |
5 |
7 years, 2 months ago
Noman
|
|
Add instruction to custom taxonomy meta box
Started by: Anonymous
in: Toolset Professional Support
Quick solution available
Problem: I want to add text to a custom taxonomy meta box in the wp-admin editor.
Solution: It's not possible with Toolset, and WordPress does not offer any filter that allows you to accomplish this.
|
|
2 |
11 |
7 years, 2 months ago
Anonymous
|
|
after create taxonomy "categoria" the voice "categories" disappeared from wp-adm
Started by: filippoC-2
in: Toolset Professional Support
|
|
2 |
2 |
7 years, 2 months ago
Christian Cox
|
|
Reusing taxonomy "Person" within other fields
Started by: michaelM-30
in: Toolset Professional Support
|
|
2 |
3 |
7 years, 2 months ago
michaelM-30
|