Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adaptifyDesigns/94be6c36d1a142f70cdbbcee948d2e33 to your computer and use it in GitHub Desktop.
Save adaptifyDesigns/94be6c36d1a142f70cdbbcee948d2e33 to your computer and use it in GitHub Desktop.
<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