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é |
---|---|---|---|---|---|
How to
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 6 | Il y a 5 années | |
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 5 années | |
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 5 années | |
Hide empty filters
Commencé par : romanB-3
in: Toolset Professional Support
Problem: Solution:
Notice: Relevant Documentation: |
|
2 | 5 | Il y a 5 années | |
Convert content to shortcode
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 3 | Il y a 5 années | |
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 5 années | |
Limit filters based on a post terms
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 6 | Il y a 5 années | |
Wrap repeater fields into custom tags
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 3 | Il y a 5 années | |
Filter term view based on several conditions for same meta-field
Commencé par : romanB-3 in: Toolset Professional Support |
1 | 2 | Il y a 5 années | ||
How to deactivate description defaut field in custom taxononmy ?
Commencé par : romanB-3
in: Toolset Professional Support
Problem: Solution: |
|
2 | 3 | Il y a 5 années | |
Every time I save custom fields I got a fatal error
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 8 | Il y a 5 années | |
Wrap post body in tags
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 3 | Il y a 5 années | |
Import urls in a repeatable field with Toolset beta addon
Commencé par : romanB-3 in: Toolset Professional Support |
|
1 | 2 | Il y a 5 années | |
Display list of posts based on a term's field
Commencé par : romanB-3 in: Toolset Professional Support |
1 | 2 | Il y a 5 années | ||
Add a custom filter that will impact other filters in an archive view
Commencé par : romanB-3 in: Toolset Professional Support |
|
2 | 3 | Il y a 5 années |