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é |
---|---|---|---|---|---|
Conditional display if current term page is from a specific taxonomy
Commencé par : romanB-3
in: Toolset Professional Support
Problem: I have an archive assigned to multiple taxonomies. I would like to display some information conditionally depending on where the archive is displayed, per taxonomy or per term. Solution: Use the is_tax function built-in to WordPress to determine the current archive location. Be sure to register it in Toolset > Settings > Front-end content > Functions inside conditional evaluations, and be sure to supply all optional arguments to the function like so: [wpv-conditional if="( is_tax('auteur', null) eq '1' )"] ... this is the auteur taxonomy archive... [/wpv-conditional] Relevant Documentation: |
|
2 | 7 | Il y a 4 années et 10 mois | |
Timeout from external ressources
Commencé par : romanB-3
in: Toolset Professional Support
Problem: Several pages of my site hang or crash, or simply will not load. My host says there is a problem with implementing external resources. Solution: There seems to be a problem with some deeply nested Views and conditionals. It might be best here to create some custom shortcodes instead of nesting Views with shortcode arguments inside other Views with shortcode arguments and conditionals. Use the get_view_query_results API to get a View's results in PHP. Relevant Documentation: |
|
2 | 5 | Il y a 4 années et 10 mois | |
How to
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 6 | Il y a 4 années et 10 mois | |
Displaying non-Types term fields on the term archive page with Blocks
Commencé par : romanB-3
in: Toolset Professional Support
Problem: I would like to display some non-Types termmeta fields in my Blocks term archive page. Solution: This would require a custom shortcode solution: function archive_term_meta_func($atts) { $a = shortcode_atts( array( 'slug' => '' ), $atts ); $term_id = isset(get_queried_object()->term_id) ? get_queried_object()->term_id : null; if( $term_id && $a['slug'] ) { return get_term_meta( $term_id, $a['slug'], true); } return; } add_shortcode("archive-term-meta", "archive_term_meta_func"); Then use it like this in an archive: [archive-term-meta slug="some-slug"] |
|
2 | 10 | Il y a 4 années et 10 mois | |
Display defaut post’s post type slug in URL
Commencé par : romanB-3
in: Toolset Professional Support
Problem: I would like to change my site's default post permalink structure to be mysite.tld/%post_type%/%post_name%/ Solution: You can use the permalink structure settings in wp-admin > Settings > Permalinks to add some custom rewrite slug. Then in each custom post type's rewrite rules you can disable the "append to front" setting as needed. |
|
2 | 5 | Il y a 4 années et 10 mois | |
Apply several query filters on same taxonomy
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 2 | Il y a 4 années et 10 mois | |
Hide empty filters
Commencé par : romanB-3
in: Toolset Professional Support
Problem: Solution:
Notice: Relevant Documentation: |
|
2 | 5 | Il y a 4 années et 10 mois | |
Convert content to shortcode
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 3 | Il y a 4 années et 10 mois | |
Conditional display if view results >0
Commencé par : romanB-3
in: Toolset Professional Support
Problem: Build a conditional display based on wether if the view has results or not. Solution: When you edit a post view, you can display the post found count with shortcode [wpv-found-count] In section "Loop Editor", there are two sets of shortcodes: You can use them to display different results "based on wether if the view has results or not". Relevant Documentation: https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-items-found https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-no-items-found |
|
2 | 4 | Il y a 4 années et 10 mois | |
Limit filters based on a post terms
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 6 | Il y a 4 années et 10 mois | |
Wrap repeater fields into custom tags
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 3 | Il y a 4 années et 10 mois | |
Filter term view based on several conditions for same meta-field
Commencé par : romanB-3 in: Toolset Professional Support |
1 | 2 | Il y a 4 années et 10 mois | ||
How to deactivate description defaut field in custom taxononmy ?
Commencé par : romanB-3
in: Toolset Professional Support
Problem: Solution: |
|
2 | 3 | Il y a 4 années et 10 mois | |
Every time I save custom fields I got a fatal error
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 8 | Il y a 4 années et 10 mois | |
Wrap post body in tags
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 3 | Il y a 4 années et 10 mois |