- No categories
- All
Retrieve custom post types by custom taxonomies with WP_Query
I am trying to filter custom post type data using ajax. For that, I display some custom taxonomies as select tags. I've been trying for 6 hours to retrieve custom post types using WP_Query with these custom taxonomy arguments, but I am not able to get the query working. This is my custom post type: function cpt_retiro() { $labels = array( 'name' => _x( 'Retiros', 'Post Type General Name', 'break-breath' ), 'singular_name' => _x( 'Retiro', 'Post Type Singular Name', 'break-breath' ), 'menu_name' => __( 'Retiros', 'break-breath' ), 'name_admin_bar' => __( 'Retiros', 'break-breath' ), 'archives' => __( 'Archivos del retiro', 'break-breath' ), 'attributes' => __( 'Atributos del retiro', 'break-breath' ), 'parent_item_colon' => __( 'Elemento padre', 'break-breath' ), 'all_items' => __( 'Todos los retiros', 'break-breath' ), 'add_new_item' => __( 'Añadir nuevo retiro', … [Read more...] about Retrieve custom post types by custom taxonomies with WP_Query
Learn More