romanB-3
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Conditional display if current term page is from a specific taxonomy
Gestartet von: 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 | vor 4 Jahren, 10 Monaten | |
Timeout from external ressources
Gestartet von: 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 | vor 4 Jahren, 10 Monaten | |
How to
Gestartet von: romanB-3 in: Toolset Professional Support |
|
2 | 6 | vor 4 Jahren, 10 Monaten | |
Displaying non-Types term fields on the term archive page with Blocks
Gestartet von: 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 | vor 4 Jahren, 10 Monaten | |
Display defaut post’s post type slug in URL
Gestartet von: 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 | vor 4 Jahren, 10 Monaten | |
Apply several query filters on same taxonomy
Gestartet von: romanB-3 in: Toolset Professional Support |
|
2 | 2 | vor 4 Jahren, 10 Monaten | |
Hide empty filters
Gestartet von: romanB-3
in: Toolset Professional Support
Problem: Solution:
Notice: Relevant Documentation: |
|
2 | 5 | vor 4 Jahren, 10 Monaten | |
Convert content to shortcode
Gestartet von: romanB-3 in: Toolset Professional Support |
|
2 | 3 | vor 4 Jahren, 10 Monaten | |
Conditional display if view results >0
Gestartet von: 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 | vor 4 Jahren, 10 Monaten | |
Limit filters based on a post terms
Gestartet von: romanB-3 in: Toolset Professional Support |
|
2 | 6 | vor 4 Jahren, 10 Monaten | |
Wrap repeater fields into custom tags
Gestartet von: romanB-3 in: Toolset Professional Support |
|
2 | 3 | vor 4 Jahren, 10 Monaten | |
Filter term view based on several conditions for same meta-field
Gestartet von: romanB-3 in: Toolset Professional Support |
1 | 2 | vor 4 Jahren, 10 Monaten | ||
How to deactivate description defaut field in custom taxononmy ?
Gestartet von: romanB-3
in: Toolset Professional Support
Problem: Solution: |
|
2 | 3 | vor 4 Jahren, 10 Monaten | |
Every time I save custom fields I got a fatal error
Gestartet von: romanB-3 in: Toolset Professional Support |
|
2 | 8 | vor 4 Jahren, 10 Monaten | |
Wrap post body in tags
Gestartet von: romanB-3 in: Toolset Professional Support |
|
2 | 3 | vor 4 Jahren, 10 Monaten |