Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Need to get Repeating Image Field URLs in CRED Form for PHP…
|2||3||1 month, 4 weeks ago|
|URGENT – Cred Auto Draft URLs Generated by Form are no longer unique…||2||13||2 months ago|
|Error Code Thrown on Form Submit…||2||6||2 months ago|
|WYSIWYG Editor Won't Save Content…||2||7||2 months, 3 weeks ago|
|Map View – Need to Scale Result Limit with Search Area…||2||4||3 months ago|
|Searching for Alaska returns Results for Arizona…||2||4||5 months ago|
|Change Images Source From Prime in Media Folder to Reduced Size, like "-150×150"||1||2||10 months ago|
|Need a view to output text for html data attribute without spaces…||2||3||11 months, 3 weeks ago|
Need a more stable way of hiding CPTs that have no child relations…
Problem: I have a nested View structure that shows parent posts in the outer View and child posts in the nested View. In some cases the parent post has no child posts, and I would like to hide those parent posts in the results. The problem is that the nested child post View is filtered. Is there a conditional that tests whether or not a parent post contains these filtered child posts?
Solution: You can solve this without custom code by restructuring the Views. Instead of displaying the parent post information in the outer View, display the parent post information in the nested child View, inside wpv-items-found but outside wpv-loop. Use the item attribute to display parent post information with any shortcodes in the nested View, since the post context in the nested View is the context of the child posts. The syntax for the item attribute is item="@relationship-slug.parent" in a typical one-to-many (O2M) relationship.
|3||9||1 year ago|
Issues with map loading speed and issues with distance value…
Problem: I have a View of custom posts that displays a map with markers, using a distance filter and sorting results by distance. In some cases the distance center is set by a URL parameter, and in others, it is set by a shortcode attribute. I have implemented some custom code in a wpv_view_settings filter to toggle between the shortcode attribute and the URL parameter. In the cases where distance center is set by a shortcode attribute, I am using another custom shortcode to get the User's predicted zip code. That shortcodes an external service to get a predicted zip code based on the User's IP address. The custom zip code service seems to be working correctly, and the results of the View seem to be accurate.
However, in the cases where this zip code shortcode is used to set the View's distance Query Filter by shortcode attribute, the View consistently causes the page generation time to jump by 3 or more seconds. I would like to try to optimize the page load time as much as possible.
Solution: In this case, testing revealed that using the custom zip shortcode inside a wpv_view_settings filter callback was the source of the delay in page generation, for some reason not fully understood. Replacing that shortcode with a hard-coded zip code resulted in a page generation time just a fraction of a second higher than the page without the View present at all.
|2||18||1 year, 1 month ago|
|Distance value not appearing for all results in a View upon page load||2||2||1 year, 1 month ago|
|Searching a Map View that Uses Shortcode Attribute… 1 2||3||25||1 year, 1 month ago|
|I need help understanding view URL Param filters following ajaxComplete…||2||5||1 year, 2 months ago|
|Trying to find documentation for "Product Comparison" with Views.||2||4||1 year, 2 months ago|
|WPViews Not Defined – Trying to get map to render on ajaxComplete… 1 2||4||30||1 year, 2 months ago|