Αρθρα
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)
»
<?php
// 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();
// 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();
?>