Articles of custom post types

SHOPP Custom Post Type, conditional tags

I really want to find out what the Custom Post Type is for the SHOPP plugin – is there any way you can fish it out from WP in the code or in the admin? May come in useful to customise other plugins and such. This is specifically for SHOPP plugin right now, so if […]

Troubles with making a custom template for posts

Is it possible to make a template for all posts in a custom post type? For example I would like to be able to change an adsense ad or some other element on every post by simply editing a custom template. I have been experimenting with templates that are pretty static, but I am stumped […]

How to add a select menu to this metabox code?

I’m using a metabox script that works great for having absolute control over the design and placement of the metabox fields. There is one problem: I can’t remember where I found the script and need to add a select box. This script does not use arrays as most metabox scripts do. What function can I […]

Menu with Automatic Pages Included from Custom Post Type

Question – How can one utilize the wordpress 3.0 Menu system to automatically have new pages from a custom post type included within the menu (I am referring to the Menu Management area of wordpress for the public website). I believe this currently works for the regular “pages” if you check the automatically incude box […]

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) […]

Pagination with custom post type not working

For some reason I can’g get pagination using previous_posts_link and next_posts_link working. Here is the code I have… <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; ?> <?php // The Query $the_query = new WP_Query( array( ‘post_type’=>’article’, ‘posts_per_page’=>2, ‘orderby’=>’date’, ‘paged’=>$paged ) ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); if($the_query->current_post == 0 && […]

Change headers in admin posts list

Is there anyway to show different information shown about custom post types in their list in the admin, wp-admin/edit.php?post_type=myposttype ? Obviously I could rip it apart by adding php or js to the admin_head action, but is there a core wp way.

How would I create a shortcode to display a custom post within a page or regular post?

I would like to create a shortcode that will extract information for a custom post, and display it within a Page or regular Post. Specific use case: I have a custom post type “Film” for a film festival website. The films are displayed with their own single-film.php, but occasionally the site owners want to write […]