Questions tagged [custom-post-types]

Custom Post Types extend WordPress to support additional content.

Filter by
Sorted by
Tagged with
0
votes
4answers
1k views

Trick to get custom post types to show up on a custom taxonomy page?

I've setup a custom post type and a custom taxonomy for that post type, but I'm having one problem - on the custom taxonomy permalink pages, the content of the custom post that should be there is not ...
7
votes
2answers
2k views

Multiple Custom Metabox Help

I have been trying to get this worked out for over a year and have tried numerous ways and have not been able to get it to work. I'd really appreciate it if someone could help me with this. Here's ...
4
votes
1answer
3k views

Changing the URL Structure of a Paginated Custom Post

I have a custom post type for slideshows that creates a paginated post and each slide is a separate page. The data for each slide is saved in the custom fields and each slide has a title set saved in ...
1
vote
1answer
627 views

Conditional PNG Overlay in Custom Post Type Loop Depending on Post Type

I have a loop pulling in two different custom post types. I have that loop showing the thumbnails of posts. Each post type used to have its own seperate loop and I had set up some png overlays to ...
0
votes
1answer
582 views

custom posts permalinks url rewriting

My permalinks are: /%postname% I currently use Custom Post Permalinks to rewrite my permalinks. It work well, but... I dlike to have some url like: www.mysite.com/permalinks_of_my_custom_posts.php >> ...
6
votes
2answers
7k views

Attaching media to custom posts without editor

I'm creating a custom post type, "gallery", in which the admin should be able to upload images (these images would be attached to the post). The thing is that the "editor" meta box is disabled for ...
1
vote
1answer
3k views

Display custom post data in sidebar w/ dropdown

I'm trying to set up a sidebar area that'll do two things: Display a drop-down of posts in a given custom post types. Display post metadata (content and custom fields) if selected post The thing ...
1
vote
3answers
1k views

single-type.php not working, delivering 404

I've created a custom post type, and have successfully added a few entries. I can call these entries out with query_posts() to show on the front page, but the_permalink() on each of them just sends me ...
6
votes
2answers
22k views

How to call a custom post with get_posts() instead of query_posts()?

I currently use query_posts to show these custom posts but I'm pretty sure that I should uses get_posts() to write it correctly. <?php query_posts( array( 'type-mario' => 'games', 'showposts' =&...
4
votes
4answers
1k views

How to add a post from a custom post type as the static page?

I have created a custom post type and added some custom metaboxes to the page edit screen. My objective was to provide specific metaboxes which a user can edit which in turn would allow a user to ...
1
vote
2answers
3k views

Taxonomy.php Not Showing Posts

I have the following code in my Functions.php file to create a custom taxonomy and post type. And I have created a series of posts within this post type and attached tags to them. add_action( 'init', ...
45
votes
5answers
54k views

Deregister custom post types

Anyone know of a way to deregister custom post types? Is there an equivalent to register_post_type()?
17
votes
3answers
11k views

Add Custom Fields to Custom Post Type RSS

I'd like to add custom fields in my custom post type to the RSS feed for that post type located at http://example.com/feed/?post_type=my_custom_post_type I've seen info on doing this for the regular ...
1
vote
1answer
727 views

Notify admin on new submit

With WordPress 3.0 its easy to for users to submit custom content from the front end. They don't even need to be logged in anymore. Is there a functions code (not a plugin) to notify a predefined ...
3
votes
2answers
3k views

Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?

After reading Adding a Taxonomy Filter to Admin List for a Custom Post Type? I tried it but I wasn't able to get it to filter two (2) different taxonomies at same time. The system is only filtering ...
21
votes
7answers
15k views

Change the text on the Publish button

Is there a way to change the text of the publish button on a custom post type to say some different? For example, Save instead of Publish. And also remove the draft button?
4
votes
1answer
431 views

Can I make user role that can only access a certian content type?

I would like make a custom role that can only access a custom content type that I'm going to be creating in the admin. Is that possible and does any know of any examples or tutorias that I should ...
4
votes
1answer
5k views

Custom Taxonomy Template Post List with Sort Order

I have an interesting problem I am trying to solve. Here is my situations: I have create a custom post type for "events". For each event post I require custom fields to be entered for the event start ...
6
votes
3answers
4k views

How to Make a Separate RSS Feed for Each Custom Post Type

How can I make a separate RSS feed for each custom post type? I had searched the net for it and found suggestions to do something like this: http://www.yoursite.com/feed/?post_type=book I tried ...
1
vote
1answer
2k views

How can I show/add/save custom metaboxes as an Array of values?

What I am trying to do is create a custom post type, custom meta box that inserts the values of it into an array of 'colors' or, 'p_clrs'. I have a jQuery script which works, allowing you to click a ...
3
votes
5answers
7k views

Counting Posts of a Given Post Type Having a Specific Taxonomy?

(Moderator's note: The original title was "How to know the number of custom type posts having a specific taxonomy") I'm stuck with the function wp_count_posts()! I created custom post types called '...
0
votes
1answer
1k views

Custom fields not saving in newest Wordpress 3.0.1

I had this working a couple of weeks ago and the only thing I can think is that WordPress has updated and broken the functionality? I followed the tutorial here to add custom fields: http://net....
1
vote
2answers
2k views

How to hack YARPP plugin to find related posts for custom post type?

Does anybody knows how I can hack YARPP (Yet-Another-Related-Post-Plugin) to find related posts for custom post type? I really can't find any better related post plugin than YARPP. But, unfortunately,...
0
votes
1answer
409 views

Placing Admin Post Metaboxes in Tabs

I am looking for what code one would need to add into the functions.php file which would allow specific metaboxes to show up in tags instead of within their individual metaboxes. Can anyone help with ...
2
votes
1answer
365 views

How to associate two different post types (think Book and Chapter)

I just recently started learning Custom Post Types, but haven't been able to find any documentation that would allow me (at least in the admin) to nest them. My requirements are, a book post type ...
3
votes
2answers
9k views

Dynamic navigation for custom post type (pages)

I have a set of custom post types with the capability_type argument set to 'page' I want to include these in wp_list_pages() or similar so I can use the dynamic classes (such as .current_page_item ...
9
votes
4answers
10k views

Showing User's Post Counts by Custom Post Type in the Admin's User List?

I'm trying to figure out how to hook into the /wp-admin/users.php manage page to create custom columns for showing the number of posts users have for the custom post types on WPHonors.com. I created ...
2
votes
2answers
819 views

Conditionally Query Custom Post Types by Post Meta for Blog Home Page?

(Moderator's note: The question's original title was: "Custom query: Show custom post types plus custom post type with post meta on blog homepage") I'm in need of help with a custom query. I have ...
0
votes
1answer
348 views

Can I get an auto-populated dropdown list of other custom posts in a custom post edit page?

I have a custom post type, and in one of the custom meta-fields, I would like to present a drop-down list of the other (published) custom posts in order to link two custom posts. Specifically, I have ...
1
vote
2answers
271 views

I changed post_type and now I receive 404 errors

I changed a custom post_type to a different name. Now when I view a single page with the post_type I receive a 404 page. How do I debug? Is there a WP log I can view the functions call?
2
votes
1answer
3k views

Custom Post Type Rewrite Rule for Author & Paging?

I'm using WordPress 3.0.1 and I have made custom post-type called 'dienasgramatas'. My plugin also makes custom rewrite rules for displaying all posts from this post type and even custom permalink ...
1
vote
1answer
243 views

In WordPress how do you create a custom post type with the author's name in the slug?

I'm trying to build a new WordPress theme using register_post_type to create a custom post type called listings. I would like each listing to have the following permalink structure: http://www....
0
votes
2answers
5k views

Adding CSS to custom post type admin page causes error

I have this bit of code in my Meteor Slides plugin that loads a stylesheet on the admin pages of just the slides custom post type: add_action('admin_head', 'meteorslides_admin_css'); function ...
0
votes
5answers
2k views

How does one flush rules on theme activation or deactivation only?

Flushing rules is clearly an important part of creating themes with custom post types. See here and here. Does anyone have any example code of how to flush rules from functions.php? I'm a little ...
1
vote
2answers
226 views

Using wordpress template tags within an array

A bit of a noob PHP question coming up. I am trying to create a generic archive style view for my custom post types. Ideally I want to create one generic template that can be used for all post-types. ...
3
votes
3answers
907 views

Issues when rewrite rules collide?

Is it a problem to have a custom taxonomy and a custom post type use the same rewrite structure? I have a custom taxonomy people and a custom post type people_bio. The idea is that you get a list of ...
30
votes
7answers
30k views

Highlighting wp_nav_menu() Ancestor Class w/o Children in Nav Structure?

(Moderators note: Was originally titled "wp_nav_menu Ancestor class without children in navigation structure") I have a wp_nav_menu in my header which had three pages in it. When I am on one of those ...
1
vote
1answer
2k views

WordPress custom post type Single.php?

I have a WordPress custom post-type setup. I've created single-[customposttype].php However instead of displaying only the requested custom-post-type it goes to the URL, then displays all of the ...
4
votes
2answers
7k views

is_home() and is_single() Not Working as Expected with Custom Post Types?

(Moderators note: Was originally titled: "Custom post type problem?") I'm having some problems with custom post types where everything is working great except for the sidebars. Here is some code ...
0
votes
1answer
6k views

Displaying custom posts by category

I can get custom posts to display on my site. However, I want to filter the posts by category. The custom posts are displaying on this page: http://www.africanhealthleadership.org/resources/...
2
votes
1answer
4k views

Assigning Multiple Layout Designs with Custom Pages in WordPress?

(Moderator's note: This question was previously titled "How to add multiple custom page in wordpress") I am developing a WordPress site and right now I have a custom home page and others are default ...
5
votes
2answers
7k views

How to handle a hierarchy with custom post types

I have moved into WordPress for a few days and was quite impressed by all the available features, plugins and polished themes. I have spent quite some times reading documentation about themes and ...
0
votes
1answer
392 views

How can I display a drop-down select of Post Names

I would like to add a custom write panel to a custom post type. I'm looking at the the code here: http://wefunction.com/2009/10/revisited-creating-custom-write-panels-in-wordpress/ I can get the ...
3
votes
3answers
934 views

How can I combine posts of different types in one hierarchy?

I'd like to create a custom post type and add this as a child post of some but not all existing standard posts (which are not pages). Is this possible? Can I, for example, create a custom post type ...
2
votes
1answer
4k views

Parent drop-down not appearing for custom post type

I'm trying to create a custom post type that I can associate with parent posts (they are posts not pages). Wordpress is version 3.0.1. I was hoping to see a list of posts in a parent post drop-down ...
2
votes
2answers
4k views

Displaying Posts Related to Other Posts by a Taxonomy Term?

I have a custom post type for musician's profiles, and a taxonomy for their location (categorised hierachically into Countries and then Cities). On the musician's individual profile pages I need to ...
7
votes
2answers
9k views

display different template based on post type

Hay, i have a custom post type "Events", however this is basically a post type, so it inherits the post.php template page. Is there anyway to use a different template (i.e events.php) if the content ...
33
votes
6answers
44k views

Include custom taxonomy term in search

I have two custom taxonomies applied to two custom post types. the terms list on the sidebar just fine and will list all posts associated with it. However, if you search one of the terms in specific, ...
2
votes
1answer
569 views

List Posts of a Custom Post Types Ordered by Terms of a Custom Taxonomy?

I've created a custom post type and custom taxonomy. I can now create a new post and associate it with a custom category. The problem is listing these news post types. This: $loop = new WP_Query( ...
4
votes
2answers
269 views

Show the First Post from Each of 3 Different Post Types on a Web Page?

I have 3 different custom post types: 1.) "events", 2.) "winners" and 3.) "offers". How would I go about retrieving the first (latest) post in each of these post types on a single web page (i.e a home ...