peterS-14
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é |
---|---|---|---|---|---|
Display Conditional Child View depending on Custtom Field Value of Parent View
Commencé par : peterS-14
in: Toolset Professional Support
Problem: The issue here is that the user wanted to display a different child view based on a custom field value. Solution: This seems like something that can be achieved by using our conditional shortcodes to check the custom field value. Take a look at our documentation below on our conditional shortcode and let me know if it helps. |
2 | 3 | Il y a 6 années et 4 mois | ||
Display Conditional Child View depending on Custtom Field Value of Parent View
Commencé par : peterS-14
in: Toolset Professional Support
Problem: The issue here is that the user wanted to display a different child view based on a custom field value. Solution: This seems like something that can be achieved by using our conditional shortcodes to check the custom field value. Take a look at our documentation below on our conditional shortcode and let me know if it helps. |
2 | 3 | Il y a 6 années et 4 mois | ||
Question about very strange wrapping of of Views Template in Divi 3.10.1
Commencé par : peterS-14
in: Toolset Professional Support
Problem: Solution: |
2 | 10 | Il y a 6 années et 6 mois | ||
Divi and Bootstrap confusion
Commencé par : peterS-14 in: Toolset Professional Support |
2 | 3 | Il y a 6 années et 6 mois | ||
Divi 3.10 update distorts all Views build with Divi Builder
Commencé par : peterS-14 in: Toolset Professional Support |
2 | 4 | Il y a 6 années et 6 mois | ||
Content of fields in repeatable group stopped saving
Commencé par : peterS-14 in: Toolset Professional Support |
2 | 3 | Il y a 6 années et 6 mois | ||
Point taxonomy link to a different URL then the taxonomy archive
Commencé par : peterS-14
in: Toolset Professional Support
Problem: I would like to include a list of terms associated with the current post, but I would like the links for each term to point to a custom URL. The links provided by the wpv-post-taxonomy shortcode point to the term archive pages, but I want to point to a custom URL generated with the term slug. Solution: The best way to do this is to create a second View. It should be a taxonomy View of the cm-shop-category taxonomy, filtered by term, where the term is set by the current post. Then in the Loop Output editor, build your HTML link tag like this: <a href="/shop-directory/?wpv-cm-shop-category=[wpv-taxonomy-slug]">[wpv-taxonomy-title]</a> Insert this View in the Product Content Template or Template Layout to see the list of links appear on the Product page. Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-slug |
2 | 3 | Il y a 6 années et 9 mois | ||
Getting a list of Taxonomies used in Child Views
Commencé par : peterS-14
in: Toolset Professional Support
Problem: I have a View of child posts displayed on a parent post page. I would like to show a list of all the terms from a specific taxonomy that are associated with all the child posts in the View. Solution: Create a View of the taxonomy filtered by term ID, where the term is set by the current post in the loop. In the Loop output editor, use the following code to produce a comma-separated list of term IDs: <wpv-loop> [wpv-item index=1] [wpv-taxonomy-id] [wpv-item index=other] ,[wpv-taxonomy-id] </wpv-loop> Add this code to your functions.php file to strip out all the extra markup from these results: add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 ); function prefix_clean_view_output( $out, $id ) { $ids = array( 12345 ); if ( in_array( $id, $ids )) { $start = strpos( $out, '<!-- wpv-loop-start -->' ); if ( $start !== false && strrpos( $out, '<!-- wpv-loop-end -->', $start ) !== false ) { $start = $start + strlen( '<!-- wpv-loop-start -->' ); $out = substr( $out , $start ); $end = strrpos( $out, '<!-- wpv-loop-end -->' ); $out = substr( $out, 0, $end ); } else { $start = strpos( $out, '>' ); if ( $start !== false) { $out = substr( $out, $start + 1 ); $end = strpos( $out, '<' ); $out = trim(substr( $out, 0, $end )); } } } return $out; } Replace 12345 with the numeric ID of this View of Taxonomy. Then create a second View of the taxonomy, filtered by term ID, provided by a shortcode attribute "terms". In the Loop Output of this View, include whatever you want to display for each term. There will be no duplicates in this View, even though the filter contains duplicate IDs. Finally, nest the first View in the terms shortcode attribute of the second View: [wpv-view name="second-view-slug" terms="[wpv-view name='first-view-slug']"] |
3 | 4 | Il y a 6 années et 9 mois | ||
2 Issues probably due to Conditional Display in Custom Fields
Commencé par : peterS-14 in: Toolset Professional Support |
2 | 3 | Il y a 6 années et 9 mois | ||
Button for inserting CRED forms still missing in Divi Builder
Commencé par : peterS-14 in: Toolset Professional Support |
2 | 9 | Il y a 8 années et 1 mois |