davidR-12
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 |
---|---|---|---|---|---|
How to display title of file instead of URL
Started by: davidR-12
in: Toolset Professional Support
Problem: Solution: Unfortunately this is not possible and the closest to get to this is a solution that is a workaround . |
2 | 7 | 7 years, 1 month ago | ||
How to display fields for a post in a widget?
Started by: davidR-12
in: Toolset Professional Support
Problem: The problem here is that the user wanted to display his shortcodes in widgets Solution: Try using this widget below and let me know if it helps. |
2 | 7 | 7 years, 1 month ago | ||
CRED Edit link not appearing
1
2
Started by: davidR-12 in: Toolset Professional Support |
2 | 16 | 7 years, 2 months ago | ||
How do I display category image
Started by: davidR-12 in: Toolset Professional Support |
2 | 3 | 7 years, 4 months ago | ||
Redirect user to their post on login
Started by: davidR-12 in: Toolset Professional Support |
2 | 9 | 7 years, 4 months ago | ||
Displaying posts from the parent category of a page
1
2
Started by: davidR-12
in: Toolset Professional Support
Problem: I would like to create a View that displays CPTs from a different post type that have the same lowest-level taxonomy term as the current CPT or term archive page. It should be dynamic so it can be included in a widget on many different CPTs and archives. Solution: Add the following custom shortcode, which will return the lowest-level taxonomy term for a specific CPT or Archive: add_shortcode( 'ts_deepest_location', 'ts_deepest_location_func'); function ts_deepest_location_func($atts) { $id = $atts['id']; $terms = wp_get_post_terms( $id, 'locations', array( 'orderby' => 'id', 'order' => 'DESC' ) ); $deepestTerm = false; $maxDepth = -1; foreach ($terms as $term) { $ancestors = get_ancestors( $term->term_id, 'locations' ); $termDepth = count($ancestors); if ($termDepth > $maxDepth) { $deepestTerm = $term; $maxDepth = $termDepth; } } return $deepestTerm->slug; } To display the View on a CPT, use this shortcode in a shortcode argument for a View filtered by taxonomy: [wpv-view name="featured-breaks-for-markets-view" wpvlocations="[ts_deepest_location id="[wpv-post-id id='$current_page']"]"] To display the View on a taxonomy Archive, use a wpv-taxonomy-archive shortcode in a shortcode argument for a View filtered by taxonomy: [wpv-view name="featured-markets-for-locations-view" wpvlocations="[wpv-taxonomy-archive info='slug']"] Be sure to register the ts_deepest_location function in Toolset > Settings > Front end Content > 3rd Party Shortcode arguments. Relevant Documentation: |
3 | 24 | 7 years, 4 months ago | ||
Sending a field created by CRED to another non Types field
Started by: davidR-12 in: Toolset Professional Support |
2 | 2 | 7 years, 4 months ago | ||
outputting ACF code via views
Started by: davidR-12 in: Toolset Professional Support |
2 | 3 | 7 years, 4 months ago | ||
Shortcode results appearing at top
Started by: davidR-12 in: Toolset Professional Support |
2 | 3 | 7 years, 4 months ago | ||
Types field not being rendered in PHP template
Started by: davidR-12 in: Toolset Professional Support |
2 | 5 | 7 years, 4 months ago | ||
How to set conditional based on checkbox in PHP
Started by: davidR-12 in: Toolset Professional Support |
2 | 3 | 7 years, 4 months ago | ||
Links not being pulled through
Started by: davidR-12 in: Toolset Professional Support |
2 | 6 | 7 years, 5 months ago |