romanB-3
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Date field is displayonly
Commencé par : romanB-3 in: Toolset Professional Support |
1 | 2 | Il y a 5 années et 10 mois | ||
In a view, only show terms from a specific hierarchical level
Commencé par : romanB-3
in: Toolset Professional Support
Problem: I have a hierarchical taxonomy with multiple levels. I would like to create a View of this taxonomy and display terms only from one specific level of hierarchy, regardless of parent term. Solution: Use a custom shortcode that produces a comma-separated list of city term IDs like 1,2,3,4. Then use this shortcode in a View of terms filtered by term ID as a shortcode attribute "terms". Here's a custom shortcode snippet: // COMMA-SEPARATED LIST OF N-LEVEL TAXONOMY TERM IDS OR SLUGS // n => Number, hierarchical level // format => String "id" (default) or "slug" // taxonomy => String "taxonomy-slug" // Ex. [n-level-term n="2" format="slug" taxonomy="book-tax"] function n_level_terms_func($atts) { $a = shortcode_atts( array( 'n' => '0', 'format'=>'id', 'taxonomy' => '' ), $atts ); $tax = $a['taxonomy']; $terms = get_terms( $tax, array( 'hide_empty' => false) ); $returns = array(); foreach( $terms as $term ) { if( isset($term->term_id) ){ $ancestors = get_ancestors( $term->term_id, $tax ); $count = count( $ancestors ) + 1; if( $count == $a['n'] ) { $returns[] = $a['format'] == 'id' ? $term->term_id : $term->slug; } } } return implode( ',', $returns); } add_shortcode("n-level-terms", "n_level_terms_func"); Here's how you would add it to the View's shortcode attribute: [wpv-view name="Filtered Term View" terms="[n-level-terms n='4' format='id' taxonomy='places']"] Relevant Documentation: |
|
2 | 3 | Il y a 5 années et 10 mois | |
Auto center and zoom map based on visitor's location
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 3 | Il y a 5 années et 11 mois | |
Show the term custom fields in CRED form
Commencé par : romanB-3 in: Chat Support |
|
1 | 1 | Il y a 6 années | |
Maps don’t show marker anymore
Commencé par : romanB-3
in: Toolset Professional Support
Problem: On a brand new project I followed the tutorial and setup a map with markers with no effect. The map shows, the API is ok, but the markers don't show. Solution: The client has fixed it by adding the second Google Map API key. Relevant Documentation: |
|
2 | 3 | Il y a 6 années | |
Use toolset
Commencé par : romanB-3 in: Chat Support |
1 | 1 | Il y a 6 années et 2 mois | ||
Split: Map don't load if one of the posts is not well filed
Commencé par : romanB-3 in: Toolset Professional Support |
|
3 | 13 | Il y a 6 années et 3 mois | |
ToTop when js-wpv-addon-maps-focus-map
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 7 | Il y a 6 années et 3 mois | |
Read more in exceprt shortcode doesn’t link to the page
Commencé par : romanB-3
in: Toolset Professional Support
Problem: The "read more" text in the wpv-post-excerpt shortcode does not link to the post. Solution: Add a link to the "more" attribute manually: [wpv-post-excerpt length='55' count='word' more='<a href="[wpv-post-url]">Lire la suite...</a>'] Relevant Documentation: |
|
2 | 3 | Il y a 6 années et 3 mois | |
Show the backend edit pages for the taxonomy
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 2 | Il y a 6 années et 3 mois | |
Map don't load if one of the posts is not well filled (2)
1
2
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 25 | Il y a 6 années et 4 mois | |
Taxonomy update broke link with post type it was associated with
Commencé par : romanB-3
in: Toolset Professional Support
Problem: I am unable to select post types in the custom taxonomy editor screen, so I cannot associate the custom taxonomy with any post types. I am also unable to see the "Options" settings, and it looks like the page is incomplete. An error is shown in the logs: [11-Sep-2018 15:45:53 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mb_strtolower() in /path/to/wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.page.php:708 Solution: Ask your site's hosting team to install and activate the Multibyte String (mbstring) extension for PHP. This extension is required for Toolset. Relevant Documentation: |
|
2 | 9 | Il y a 6 années et 5 mois | |
Set redirection when page is access restricted
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 17 | Il y a 8 années et 1 mois |