to remove wrapping code from some views.
Everything's fine except for one thing:
if the view returns no items the wrapping code is there again!
How can I get rid of it even in this case?
Since the code you suggested refers to <!-- wpv-loop-start --> and <!-- wpv-loop-end --> I've tried to add these comments event in the wpv-no-items-found section of my view layout but the system doesn't save this edit since it accepts only a single occurence of those comments.
How can I do this?
As @darrylschmidt suggested in the ticket above would you please add a feature request to add an option that enable users to activate/deactivate wrapping code per each view right inside the view setting GUI?
I made a minor modification to the code to handle the case where the loop results are empty (which would mean the wpv-loop-start comment would be missing from the string).
You can update the string returned for no results if needs be.
The way our system works I can't turn this ticket into a feature request, I'm afraid, you will need to create a new thread and specify in the drop down that it is a feature request, and then it will get directly assigned to our developers. Sorry for the duplication that requires.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.