Skip to content

Instantly share code, notes, and snippets.

@surefirewebserv
Created December 13, 2016 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surefirewebserv/b3922d3a0a47b2b0a86fac6075333f39 to your computer and use it in GitHub Desktop.
Save surefirewebserv/b3922d3a0a47b2b0a86fac6075333f39 to your computer and use it in GitHub Desktop.
Clean Grid for Views
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="3" pad="true">
[wpv-item index=1]
<div class="first one-third">
<h2>[wpv-taxonomy-title]</h2>
[wpv-view name="List of Lessons in Course"]
</div>
[wpv-item index=other]
<div class="one-third">
<h2>[wpv-taxonomy-title]</h2>
[wpv-view name="List of Lessons in Course"]
</div>
[wpv-item index=3]
<div class="one-third">
<h2>[wpv-taxonomy-title]</h2>
[wpv-view name="List of Lessons in Course"]
</div>
[wpv-item index=pad]
<div class="one-third"></div>
[wpv-item index=pad-last]
<div class="one-third"></div>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment