I have a Custom Type "Vehicles" and a Custom Field "Sold" (checkbox).
If the "Sold" checkbox is true (eq "1") then the Views Loop Item returns nothing, based on ToolSet Conditional logic.
I have a Loop configured to return a table of 3 columns.
The problem is that the Loop doesn't skip entirely.
I get a blank space in the table when the vehicle is "Sold".
Apparently the loop still returns a blank <td></td>
How can I address this?
Is it possible to wrap part of the Loop editor in conditional tags?
TBH I don't understand what these mean:
[wpv-item index=pad]
[wpv-item index=pad-last]
The documentation says:
index=pad will be executed if there are no records left to output, but the number of records is not a multiple of the loop wrap value.
index=pad-last will be executed for the last item in the loop if are no records left to output, but the number of records is not a multiple of the loop wrap value.
I don't understand "multiple of the loop wrap value".
Hello. Thank you for contacting the Toolset support.
First of all - After checking to debug the information you shared with us, I found that you are using outdated Toolset plugins. We always recommend running your site with the latest stable release plugin version.
*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/
Regarding your original query: I don't understand "multiple of the loop wrap value".
So, lets say, you have If you have created a 4 column grid (that means it will display 4 columns/records in one row) and you have total 9 records to display.
- so, first row will display the 4 records
- Second row will display the 4 records
- on the third row, the final row, the last result (9th item) is in the first column, and on columns 2, 3, and 4 are empty as we do not have any records to dispaly, as we have a total of 9 records.
-- So, on last row (the thrid row) index=pad would output for columns 2 and 3 and index=pad-last would output for column 4 (the last column)
As I understand, you want to display only items that are NOT sold, correct? If yes:
Can I check your setup? for that you need to share access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.