how can i get posts from custom post type particular taxonomy category

If you read http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters in detail it outlines everything you need. Take a look at the following code sample taken from the codex. It should help you 🙂 $args = array( ‘post_type’ => ‘Article’, /* This is where you should put your Post Type */ ‘tax_query’ => array( array( ‘taxonomy’ => ‘people’, ‘field’ => ‘slug’, … Read more

Possible to replicate economist.com’s debate section in wordpress? [closed]

That section looks extremely feature-rich and very custom. The possibility of just installing several plugins and getting something like that is pretty much zero (in my opinion). WordPress does have building blocks for such functionality: posts and custom post types for information; comments for discussion; scheduling functionality and calendar-related plugins; plugins for relationships between information; … Read more

Create Advanced search with taxonomies (not filter list)

like other times, after posting here i found my own question. Maybe its not the smarter solution but its working for me. Im using the new tax_query as commented in http://www.wpmods.com/query-multiple-taxonomies-in-wp-3-1/ Basically if i get 2 taxonomies with two terms for example $job_type=”full-time+free-lancer”; $job_cat=”designer+programmer”; I do the following: $custom_query=false; $myquery[‘tax_query’] = array( ‘relation’ => ‘AND’); … Read more

WP_Query on custom taxonomy works fine but fails if run through wp_ajax_

I don’t see your call to the ajaxurl in your code. Are you actually getting an ajax response? Try this javascript: jQuery(document).ready( function($) { $(“a.getviews”).click( function() { var td = $(this).parent(); /* only fetch results once */ $(this).unbind(‘click’).bind(‘click’, function(){return false;}); // replace button with loader $(td).html(‘<span class=”loader”></span>’); $.ajax({ type: ‘POST’, url: ajaxurl, data: { action: … Read more