Inside of the views folder, you will see several files. Below are the descriptions for each file, so you know which file to override and when it is used.

Note also that each file is documented – when you open the file, view the comments that are provided at the top of the file for more information.

Finally, note that there are several sample files provided, that reveal even more information. These files are titled “loop-all-sample.php”, “single-loop-all-sample.php”, etc. We recommend referring to those files to see many of the functions that WP Inventory makes available for displaying information.

loop-all.php

Display Settings=>Display List as Table=>No
This file is loaded to display the main listing when your display settings “Display List as Table” is set to No. This file will allow you to change the position of the filter form, as well as provide any additional markup or classes to the container inside of which the inventory items will be listed.

loop-all-table.php

Display Settings=>Display List as Table=>Yes
This file is loaded to display the main listing when your display settings “Display List as Table” is set to Yes. This file will allow you to change the position of the filter form, as well as provide any additional markup or classes to the table and containers inside of which the inventory items will be listed.

loop-category.php

Display Settings=>Display List as Table=>No
This file is similar to the loop-all.php file, however this file is called when the shortcode is set to view a specific category. Note: at this time, WP Inventory does not support different templates per category

loop-category-table.php

Display Settings=>Display List as Table=>Yes
This file is similar to the loop-all-table.php file, however this file is loaded when the shortcode is set to view a specific category. Note: at this time, WP Inventory does not support different templates per category

single-loop-all.php

Display Settings=>Display List as Table=>No
This file displays the details of an individual item within the loop / listing. Note that if you override this template, when you edit it you will see that it is highly automated in order to respect all of the settings that are in the Display Settings configuration (which fields are selected to display, what order, etc). For an example of how to use this file in a less-automated way, please refer to the single-loop-all-sample.php file, which reveals many of the functions available for displaying content.

single-loop-all-table.php

Display Settings=>Display List as Table=>Yes
Similar to single-loop-all.php above, this is the template that is loaded when Display List as Table is set to Yes.