stephenL-4
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 |
---|---|---|---|---|---|
Looping through child post type records on the parent page
Started by: stephenL-4 in: Toolset Professional Support |
2 | 4 | 1 year, 8 months ago | ||
View Block on Content Template – achieve (pseudo) Group By functionality
Started by: stephenL-4 in: Toolset Professional Support |
2 | 4 | 3 years, 8 months ago | ||
Empty filter value doesn’t paginate after page 1
Started by: stephenL-4
in: Toolset Professional Support
Problem: I have a custom search View with paginated results. There is a select field filter that has 3 options. If I direct Users to the search View with no select field filter applied in the URL, the results are correct. However, if I paginate to the second page or change filters, the select field no longer respects the blank URL parameter and the first option is applied. Solution: The best solution here would be to add a default_label attribute to the select field filter shortcode. [wpv-control-postmeta field="sale-status" default_label=" "] Relevant Documentation: |
2 | 6 | 5 years ago | ||
Sort controls in view not overriding the default sort order
Started by: stephenL-4
in: Toolset Professional Support
Problem: I am trying to: allow front-end user to custom sort a view with the controls proviced I expected to see: However, I have provided controls to change between Price and Post Date, and also Ascending and Descending, but these controls have not effect Instead, I got: the same price ascending output, which is the default. The custom sort controls are ignored. The other filters work just fine against custom fields and taxonomies. Solution: I have checked it in your website, after submit the search form, there is a URL parameter missing: Please try this: <input class="wpv_view_count wpv_view_count-94-TCPID91" type="hidden" name="wpv_view_count" value="94-TCPID91" /> And test again. Relevant Documentation: |
2 | 9 | 6 years, 7 months ago | ||
Pagination links not working
Started by: stephenL-4 in: Toolset Professional Support |
2 | 4 | 6 years, 9 months ago | ||
Displaying Caption from Media Post
Started by: stephenL-4
in: Toolset Professional Support
Problem: I am showing a View of Media posts. In that View, I would like to display the caption associated with the post. Solution: Use this custom shortcode to access a Media post's caption: add_shortcode( 'toolset_get_image_caption', 'toolset_get_image_caption_func'); function toolset_get_image_caption_func($atts) { global $wpdb; $url = $atts['url']; $id = $wpdb->get_var( $wpdb->prepare ("SELECT ID FROM $wpdb->posts WHERE guid=%s ORDER BY `ID` DESC", $url ) ); $excerpt = get_the_excerpt($id); if($excerpt) return $excerpt; $attachment_meta = get_post_meta( $id, '_wp_attachment_metadata', true ); if (isset($attachment_meta['image_meta'])) return $attachment_meta['image_meta']['caption']; } Add that code to your child theme's functions.php file. Then in a loop of Media posts, you can use the shortcode like this: [toolset_get_image_caption url="[wpv-post-url]"] |
3 | 6 | 6 years, 9 months ago |