Last active
February 5, 2017 21:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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