Plugin
How to create custom output template
http://wordpress-filter.com/howto/create-custom-output-template/
Shortcode (mdf_custom)
http://wordpress-filter.com/features/shortcode-mdf_custom/
Discussion on MDTF – geo2arc
http://codecanyon.net/item/wordpress-meta-data-taxonomies-filter/7002700/comments?filter=all&site=codecanyon.net&term=geo2arc&utf8=%E2%9C%93
SEARCH FORM
(mdf_search_form id=”224″)
SORT PANEL
http://wordpress-filter.com/features/sort-shortcode-mdf_sort_panel/
(mdf_sort_panel)
https://facetwp.com/documentation/putting-it-all-together/
translate strings using gettext – https://gist.github.com/mgibbs189/eea3d274273e7b6aa2e0
THEME
index.php
article-container add class “facetwp-template” , or
echo facetwp_display( 'template', 'my_template' );
single.php
a) <script> to redirect, after get_header
b) placeholder template <div style=”display:none”><?php echo facetwp_display( ‘template’, ‘placeholder’ ); ?></div>
Archives
https://facetwp.com/documentation/facetwp_template_use_archive/
FACETS
(facetwp facet="my_facet")
echo facetwp_display( 'facet', 'my_facet' );
disable facet until other facet is selected - https://gist.github.com/mgibbs189/7201d43589080266a197
Only index child terms (depth = 1) - https://gist.github.com/mgibbs189/3fe16f6796da96304f0e
SORT PANEL
“Per Page” box:
(facetwp per_page="true")
Selections Box:
(facetwp selections="true")
Use selections box text as the header - https://gist.github.com/mgibbs189/725ced81dbe134c322e9
Result Counts:
(facetwp counts="true")
“Sort by” box:
(facetwp sort="true")
https://facetwp.com/documentation/facetwp_sort_html/
https://facetwp.com/documentation/facetwp_sort_options/
set default sort - https://gist.github.com/mgibbs189/c7841dd4ffa131ac0025
Sort by views - https://gist.github.com/mgibbs189/50bf8df42aad5da264dc
Remove sort option - https://gist.github.com/mgibbs189/cff1f35d8cac16890c8e
Determine whether selection box is empty - https://gist.github.com/mgibbs189/0d41de9cdbf63381964c
PAGINATION
(facetwp pager=”true”)
echo facetwp_display( ‘pager’ );
customizing pagination – https://facetwp.com/customizing-pagination/
modify pager – https://facetwp.com/documentation/facetwp_pager_html/
pagination scrolling – https://facetwp.com/how-to-add-pagination-scrolling/
Custom pagination (functions.php) – https://gist.github.com/mgibbs189/9732174
Load more button – https://gist.github.com/mgibbs189/745124f65eb32eec92da
How to create custom output template
http://wordpress-filter.com/howto/create-custom-output-template/
Shortcode (mdf_custom)
http://wordpress-filter.com/features/shortcode-mdf_custom/
Discussion on MDTF – geo2arc
http://codecanyon.net/item/wordpress-meta-data-taxonomies-filter/7002700/comments?filter=all&site=codecanyon.net&term=geo2arc&utf8=%E2%9C%93
SEARCH FORM
(mdf_search_form id=”224″)
SORT PANEL
http://wordpress-filter.com/features/sort-shortcode-mdf_sort_panel/
(mdf_sort_panel)
// This function will accept an optional User ID parameter
$favorites = get_user_favorites();
if ($favorites):
// Method 2: WP_Query Object
$favorites_query = new WP_Query(array(
‘post_type’ => ‘workout’,
‘posts_per_page’ => 5,
‘post__in’ => $favorites
));
if ( $favorites_query->have_posts() ) : while ( $favorites_query->have_posts() ) : $favorites_query->the_post();
get_template_part(‘templates/content-workout’);
//get_template_part(‘parts/workout-playlist’);
endwhile; endif; wp_reset_postdata();
else:
echo ‘Your playlist is empty’;
endif;
wp_reset_postdata();
?>