Created
June 27, 2016 15:18
-
-
Save adaptifyDesigns/94be6c36d1a142f70cdbbcee948d2e33 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<div id="member-resources-movements"> | |
<?php | |
if( function_exists('facetwp_display') ) | |
{ | |
// Facets: | |
echo ' | |
<div class="movement-library_filters"> | |
' . facetwp_display( 'facet', 'post_title_autocomplete_search' ) . ' | |
</div> | |
'; | |
// Template: | |
echo facetwp_display( 'template', 'movement_library' ); | |
} | |
?> | |
</div> | |
<?php | |
// These are my "Query Arguments" in Settings > WPFacet > Templates: | |
return array | |
( | |
'post_type' => array( 'wuwo-movement' ), | |
'posts_per_page' => 9, | |
'orderby' => 'title', | |
'order' => 'ASC', | |
); | |
// And this is my "Display Code": | |
// The file referenced contains the above template code. | |
include( get_stylesheet_directory() . '/parts/my-account/wpfacet-movement-library.php' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment