Custom Post Types extend the WordPress back-end to support additional, non-Post content.

learn more… | top users | synonyms (1)

0
votes
1answer
555 views

How to programatically set the post title of a CPT on wp-admin

I've been playing with custom post types & custom fields, using a combination of the types plugin and the advanced custom fields plugin, also having done the same manually. Occasionally I want to ...
0
votes
1answer
239 views

Bizarre Permalinks Issue: 404 Errors Everywhere

First and foremost, this is definitely a duplicate of the age old question of "my Wordpress permalinks are generating 404 errors", but in a way it's different because no solutions I've tried have ...
1
vote
3answers
425 views

Can't edit custom post type

I'm using the following code to create two custom post types: Pastebin Link The Spotlight custom post type is giving me the edit/permalink to edit the post. However, the cooking video isn't. I've ...
0
votes
1answer
403 views

Exclude posts with custom taxonomy

I need to show a list of custom posts but exclude any that have the custom taxonomy 51, is it possible to do it with the loop below? $pages = get_children(array('orderby' => 'post_date', ...
0
votes
1answer
107 views

empty dashboard for custom role

I setup a custom post type employee with an agent role that mimics an author role for this particular post type, and so far everything is working fine, except that when I created a test user and ...
1
vote
1answer
3k views

If on term-page -> get the current term?

I'm trying to write a kind of "breadcrumb" function in my "functions.php" I'd like to query if I'm on a term-page and if so I want to print the current term I'm in. By "term-page" I mean the ...
0
votes
1answer
467 views

Does “Custom Post Type” can have page hierarhy option?

I want create "Custom Post Type" that will have next structure: Post (hierarhy level)-(some-post-id) Post 1-1 => Post 2-2 Post 2-3 Post 2-4 => Post 3-5 ...
1
vote
1answer
282 views

List Taxonomies: Don't list taxonomy if it has no post - depending on custom post-meta?

This might be complicated to explain and I don't know if there is a solution to that!? I have a custom-post-type named "wr_event" and a hierarchical custom-taxonomy named "event_type". The ...
0
votes
1answer
37 views

Checking for published posts in a certain post type

I run a website for a company with a careers section, with each vacancy posted as a custom post type. When vacancies are available, ie a post type of "vacancy" is published, we want to display a ...
2
votes
1answer
406 views

Menu highlight custom post type archive

I am a WP beginner and hope if anyone can help me out. I have recently installed WP 3.3.2 and Jigoshop 1.2 to see how things works if I can use WP as an ecommerce website. The problem I am facing at ...
2
votes
1answer
1k views

Child pages on hierarchical Custom Post Types 404s

I've been working with Custom Post Types lately and haven't had any major problems. This time I'm trying something new. I want to create a CPT which basically works like Pages, with page hierarchy. ...
0
votes
1answer
556 views

Custom Post Type Date Based Archive URL rewrite [duplicate]

Possible Duplicate: custom post types, wp_get_archives and add_rewrite_rule I have a custom post type called "course" and I would like to create a date based archive similar to the default ...
1
vote
1answer
566 views

How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page

This post shows how to remove unwanted fields from the media uploader. It works great, but I want to limit it to a custom-post-type and I can't seem to figure out how to do it. I've tried the ...
2
votes
2answers
324 views

Create an Info/Help message at top of a custom post type

I'm wondering how you go about creating an info/help message at the top of a custom post type in WP's dashboard? I often see these at the top of plugins and Id like to do the same thing for my custom ...
2
votes
1answer
1k views

Create an archive page for custom taxonomies

I switched my site from categories to taxonomies for my custom post but I am having trouble getting it to work the same way. For categories I could have templates named something like ...
6
votes
3answers
5k views

Add extra parameters after permalink?

How can I add extra parameters after a permalink, specifically if I'm using a custom post type? For example, let's say http://mysite/album/record-name was the permalink. How can I make ...
1
vote
1answer
285 views

Custom post type: check permissions and validate nonce

I have a custom post type with the following capabilities: $capabilities = array( 'read_post' => 'administrator', 'read_private_posts' => 'administrator', 'publish_posts' => ...
2
votes
1answer
727 views

Many to Many Relationship between Two Custom Post Types

How to I create a many-to-many relationship between two custom post types? Give type A and type B, I'd like to be able to show all B's that relate to a given A, and all A's that relate to a given B. ...
-1
votes
1answer
45 views

Custom post type efficiency

I want to make a custom post type with many custom meta boxes and data. Let's say that i want to add 50 custom post variables. I see in the db that for every post meta variable a record is inserted ...
0
votes
1answer
220 views

Set generic reservation form for custom post type

I want to create a simple reservation (reservation.php) form for a custom content type (houses), i have created the reservation.php in the theme directory. The question is: How can i link to this ...
1
vote
1answer
273 views

redirecting improperly after updating custom taxonomy term when referring from CPT edit page

I have a custom taxonomy "stat groups" (non-hierarchical) for my custom post type "stats". I created a link on the edit page for the chosen stat group term on the edit page for a stat. After ...
1
vote
1answer
610 views

Including Custom Meta with posts_where query

I have been looking around to see how to do this but the solutions i've found don't seem to be working for me. I'm making an AJAX powered search for some wordpress custom post types. I have got ...
5
votes
1answer
574 views

Show all sticky posts, WITH pagination

Trying to get a custom admin link working for a custom post type. I've managed to add a link to show all "sticky" posts next to the usual "All", "Published", "Trash", etc., but the actual query isn't ...
1
vote
3answers
389 views

Template for custom post with custom taxonomy

The theme that I'm developing is basically a portfolio, where the projects are custom post type and they are divided in categories (custom taxonomies). Here is how I'm defining both: $labels = array( ...
2
votes
1answer
235 views

Help Structuring Query for Archive Pages

I'm building a site with several different post types (blog posts, products, informational articles, etc.). On archive type pages (search results, tag pages, etc.), I want to display content from the ...
0
votes
1answer
249 views

Help with hierarchical custom taxonomies and permalinks…almost there

I'm trying to get permalinks working with custom taxonomies and custom post types. Following the instructions here I was able to get it almost working, but one small glitch. The code to register ...
0
votes
3answers
2k views

How do you create %post_type%/%postname%/ permalink structure?

How do you create %post_type%/%postname%/ permalink structure? This is what is not working: eg. ( domain.com/blog/ ) -> "click on post" -> ( domain.com/post-name ) How do I make "blog post" ...
0
votes
1answer
2k views

How to query custom post type by term?

This seems trivial but I can't get it to work. Here's my code: $args = array( 'numberposts' => -1, 'eventcategory' => 'nice-events', ...
0
votes
1answer
260 views

Allowing logged in users to create custom posts

I'm looking to create a site with a wide array of user contributed content. I have strong experience in programming, and I'm evaluating Wordpress for the task. My question: Having created a custom ...
0
votes
3answers
1k views

Custom Post Order for a Custom Post Type

I need a custom WP-Query written that will display a list of paginated pages (custom post type) in a custom order. I have a custom post type called "courses" I have a custom post type called "events" ...
2
votes
1answer
114 views

Display custom post type taxonomy and month

I have created events as custom post types and I'm storing the event start date as a custom field (YYYY-mm-dd). I've also assigned a taxonomy to each event. I need to display a list of events by ...
2
votes
2answers
2k views

Highlight menu item when on a custom post type?

I'm currently using this code to display a menu of pages. I'm using CSS to target the class current_page_item which works fine until you're on a page with a custom post type. How can I target that ...
2
votes
1answer
249 views

Search by category displaying wrong items

http://www.mediwales.com/v3/members/ At the moment, if you search just using a keyword it shows the correct member. But if you just search using a category it just shows the full list. What code can ...
1
vote
1answer
265 views

Custom post type and URL

Is it possible to remove alias from custom post type? Let me tell a bit more. For instance, I've created a post type, name "Book". So URL will be domain.com/book/post-title or ...
1
vote
1answer
519 views

Add custom column in custom post type edit page

I am using the Content Scheduler plugin to control the post expire. The plugin will add a expiry date column on the wp-admin/edit.php in page and post. However it doesn't show in custom post type page ...
5
votes
1answer
690 views

Why does my custom taxonomy show a total count across all post types

I have created a custom taxonomy 'season' I have 3 custom post types which I want to use this taxonomy. These are Races Galleries Competitors Now, when I view the totals within the taxonomy ...
0
votes
1answer
128 views

How to: Add a publish immediately button when editing custom WordPress posts?

How to: Add a publish immediately button when editing custom WordPress posts? I have found to update a custom post type I need to re-edit the scheduled time to save it. Is it possible to simple ...
0
votes
1answer
3k views

Custom “radio button meta box” not saving correctly

I'm having trouble with my "custom meta box/write panel" script that contains radio buttons. (see below)...It currently does not seem to save the selection made after publishing the custom post type, ...
1
vote
1answer
157 views

Why do I lose the content of meta boxes when I leave the page?

So I've been coding a theme and I'm working on a custom post type. When I edit a custom post and save the changes (click Update) everything is ok. But - I noticed that when I leave the Edit page open ...
2
votes
1answer
2k views

custom post types, wp_get_archives and add_rewrite_rule

I've searched to see if anyone came up with a solution to a peculiar problem I'm having but did not find anything that was close to what was happening in my case. I have two custom post types - let's ...
2
votes
1answer
574 views

wp-types - How to allow custom fields to be saved in the revision

I am using this plugin: http://wordpress.org/extend/plugins/types/ When I use the revision, it does not saves the custom fields data. Is there anyway to do it? Thanks
1
vote
1answer
493 views

Custom date changer post_date => future - missed schedule error

I'm working on a custom event scheduler for my website that allows people to easily go in and set the article to post in the future. The reason I'm overriding the normal Wordpress functionality is ...
1
vote
3answers
909 views

Only show posts with date of today or in the future (i.e don't show past posts)?

Is it possible to only show posts that have todays date or in the future? I don't want to show any posts that are in the past. Also, I want the list to show posts that have a date in the future as ...
0
votes
1answer
2k views

Only show posts from a certain category?

How can I only show items from a certain category (category 51)? Here's my loop below that I need to incorporate the code into. <div class="news-content-inner"> <?php $portfolioloop = new ...
0
votes
2answers
14k views

Create a 'single' page for a Custom Post Type

Ok, I installed the Custom Post Type UI plugin and create one. I then added a new post to it. In my theme, i have a piece of code like this: <?php $loop = new WP_Query( array( ...
0
votes
1answer
147 views

Category names on CPT archive pages [closed]

I purchased a theme and I'm trying to customize the "blog archive" pages for the Portfolio CPT that's included with the theme. The theme is: ...
8
votes
1answer
580 views

Efficient Taxonomy Intersection

I have many uses for this but I want to know the most performant way of doing what is going to be an expensive operation. As an example I will use a shop. Given: A product brand taxonomy A product ...
3
votes
2answers
2k views

wp_generate_attachment_metadata gives me an empty array

I have a custom post type and a metabox with a file input. I can insert the attachment, but I can't update the attachment metadata and I don't know how to fix it because I don't receive any error. ...
2
votes
1answer
1k views

Multiple portfolios with one custom post type?

I wonder what's the right way of creating portfolio website (with as many portfolio pages I want). Usually I create page template that displays posts with category = Portfolio or with posts from ...
1
vote
2answers
1k views

Using Query Posts With Multiple Post Types And A Taxonomy

I am developing a site that has two different custom post types; one of them is called Articles and one is called Sketchpad. Sketchpad is user submitted content that is assigned a custom taxonomy term ...