peterS-14
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Display Conditional Child View depending on Custtom Field Value of Parent View
Started by: 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 | 6 years, 2 months ago | ||
Question about very strange wrapping of of Views Template in Divi 3.10.1
Started by: peterS-14
in: Toolset Professional Support
Problem: Solution: |
2 | 10 | 6 years, 4 months ago | ||
Divi and Bootstrap confusion
Started by: peterS-14 in: Toolset Professional Support |
2 | 3 | 6 years, 4 months ago | ||
Divi 3.10 update distorts all Views build with Divi Builder
Started by: peterS-14 in: Toolset Professional Support |
2 | 4 | 6 years, 4 months ago | ||
Content of fields in repeatable group stopped saving
Started by: peterS-14 in: Toolset Professional Support |
2 | 3 | 6 years, 4 months ago | ||
Point taxonomy link to a different URL then the taxonomy archive
Started by: 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 | 6 years, 7 months ago | ||
Getting a list of Taxonomies used in Child Views
Started by: 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 | 6 years, 7 months ago | ||
2 Issues probably due to Conditional Display in Custom Fields
Started by: peterS-14 in: Toolset Professional Support |
2 | 3 | 6 years, 7 months ago | ||
Minor Issue in Beta Version 2.6-b3 with custom fields
Started by: peterS-14 in: Toolset Professional Support |
2 | 9 | 6 years, 8 months ago | ||
Mixed content in plugin
Started by: peterS-14
in: Toolset Professional Support
Problem: That the icon for links to external sites comes from a non https source body .modman-inline-module-manager .modman_learn_about_modules a[href^="//"]::after, body .modman-inline-module-manager .modman_learn_about_modules a[href^="http://"]::after, body .modman-inline-module-manager .modman_learn_about_modules a[href^="https://"]::after { content: url(http://upload.wikimedia.org/wikipedia/commons/6/64/Icon_External_Link.png); margin: 0 0 0 5px; } Solution: Thanks for the details, I can see the problem in plugin "toolset-module-manager", the codes are in two files: \toolset-module-manager\embedded\views\templates\inline.tpl.php And \toolset-module-manager\views\templates\inline.tpl.php Line 31: currently you can change the above two line codes to: content: url(//upload.wikimedia.org/wikipedia/commons/6/64/Icon_External_Link.png); Relevant Documentation: |
2 | 6 | 6 years, 9 months ago | ||
Button for inserting CRED forms still missing in Divi Builder
Started by: peterS-14 in: Toolset Professional Support |
2 | 9 | 7 years, 12 months ago |