Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $args = array(
- 'post_type' => 'wineinput_custom',
- 'meta_key' => 'wine',
- 'showposts' => -1,
- 'tax_query' => array(
- array(
- 'taxonomy' => 'categories',
- 'terms' => $subcategory3->term_id,
- 'field' => 'term_id'
- )
- ),
- );
- add_filter( 'posts_orderby', 'orderby_custom_fields' );
- query_posts($args);
- while ( have_posts() ) : the_post();
- echo '<li ">
- <a class="wine-name-style" style="padding-top: 0px; padding-bottom: 0px;" id="inline" href="#">';
- echo get_post_meta($post->ID, 'wine', true);
- echo '</a>';
- echo '</li>';
- endwhile;
- wp_reset_query();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement