Skip to content

Instantly share code, notes, and snippets.

@themeblvd
Last active February 5, 2017 21:50
Show Gist options
  • Save themeblvd/01f4f9afb456ecd8bf3a657110a7bfcf to your computer and use it in GitHub Desktop.
Save themeblvd/01f4f9afb456ecd8bf3a657110a7bfcf to your computer and use it in GitHub Desktop.
Here's an example of calling themeblvd_loop() directly. In the Theme Blvd Framework, all loops are passed through the themeblvd_loop() function. It's very powerful. To see all parameters check out the top of the function at /framework/includes/loop.php.
<?php
themeblvd_loop(array(
'query' => 'post_type=portfolio_item&posts_per_page=-1', // Custom query, must be a string unfortunately.
'context' => 'showcase', // blog, list, grid, or showcase
'display' => 'masonry_filter', // showcase (no pagination), paginated, masonry, or masonry_filter.
'filter' => 'portfolio', // What taxonomy the the masonry filter menu uses.
'columns' => 2 // Number of columns in showcase.
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment