Articles of custom taxonomy

Custom Post Type Loop within Shortcode

I’m really at loss as to why this isn’t working: I am using a shortcode to display a query on a custom post type + taxonomy, this is the segment of it: // – arguments – $args = array( ‘post_type’ => ‘customposttypename’, ‘taxonomyname’ => ‘alpha’, ‘post_status’ => ‘publish’, ); // – query – $my_query = […]

Possible to replicate economist.com's debate section in wordpress?

We’re building an online magazine with a debate section similar to economist.com/debate. Is it possible to do it in wordpress with existing plugins? Thanks so much.

WP 3.0.5 – Custom posts matching 2 taxonomies

I’m running a WP 3.0.5 website and here is my problem: I define a custom post type with 2 custom taxonomies and I’ve got to develop a search engine based upon these taxonomies. Until there, no problem : $args = array( ‘my_post_type’ => ‘post_type_name’, ‘my_taxo_1’ => ‘taxo-1-slug’, ‘my_taxo_2’ => ‘taxo-2-slug’ ); query_posts( $args ); Working […]

how to group custom post type posts by custom taxonomy terms

I would really appreciate if you could help me 🙂 I’m very stuck and don’t know how to proceed. I have a custom post type called event and 2 custom taxonomies registered for it: event_type with tag-like functionality (ex. of event type: yoga, voice work) event_location with category-like functionality (ex of event location: uk->brighton, london; […]

Group custom posts by custom taxonomy names

I try to display a list of custom posts grouped by categories using a solution from here (the 1st option/example). I adapted the code only a little to my needs, but it freezes (get a white display if it isn’t commented) my installation/blog, because of this line (as it seems to me): $term_ids = array_map(function($t) […]

Share taxonomy between user and posts?

I’m in need of a taxonomy that can be shared between users and posts. Is this possible and if so how? I read that you can set up taxonomy for users, but is it possible to share it with a post type? My use case is a company employees list where employees are divided into […]

Associate custom post types with normal posts

I have a custom post type, called App. This has details like the name, description, thumbnail image, and some custom fields. Then I have posts about this app, that I’d like to associate with it. In the end, I’d like to be able to view the custom post type and all the posts that are […]

Specifying multiple categories in URL (permalink)?

For example: http://www.example.com/dell/studio/studio-1558 where dell and studio are categories A few months back I heard from someone that it is not possible. I need to know why? Which part of code prevents it? Is there any workaround for this?

How to create new category for custom post type?

I have create a custom post type named “jobs”, and I want to create a set of category for that, ie like “PHP Jobs”, “Python Jobs” etc. $args = array( ‘labels’ => $labels, ‘public’ => true, ‘publicly_queryable’ => true, ‘show_ui’ => true, ‘show_in_menu’ => true, ‘query_var’ => true, ‘rewrite’ => true, ‘capability_type’ => ‘post’, ‘exclude_from_search’ […]

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

I’m using WP_Query to collate some info about posts based on their custom taxonomy. My arguments are as follows: $args = array( ‘posts_per_page’=> -1, ‘post_status’ => ‘publish’ ); if ( isset($_POST[‘tag_id’]) ) : $args[‘tax_query’] = array(array( ‘taxonomy’ => ‘region’, ‘field’ => ‘id’, ‘terms’ => $_POST[‘tax_id’], )); endif; Then I loop through and collate my data. […]