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

learn more… | top users | synonyms (1)

1
vote
0answers
29 views

Create more category hierarchical depth for custom post type/taxonomy plugin (widget)

Source: http://getplatypi.com/docs/ A little new to the plugin development world, but so far I am building a post type plugin to support hierarchical categories in a list form with multiple depth ...
1
vote
1answer
58 views

Dynamic page.php template for custom post types

I have a couple of custom post types registered. I would like to display all "posts" from each custom post type on its own page, and these pages must be visible in the nav menu. It would be great to ...
0
votes
0answers
14 views

Post Meta rows from other types being added to DB regardless of post type

I have 3-4 custom post types in my wordpress site. Each one has some unique post meta fields I create and update using meta boxes. In looking in the database during development I'm noticing that ...
0
votes
1answer
30 views

Hook only specific post type

with this function I change the title of my posts in the posts type 'alternatives'. My problem is that Wordpress changes all my titles now. Does anyone know how I can set this for the specific custom ...
1
vote
0answers
9 views

Addin plugin custom post type to members plugin

I am using the Wp-Leads plugin and Members plugin and I want to create a new user with the role leads-admin. When I go into the leads-admin role I added these capabilities: edit_wp-leads ...
0
votes
0answers
37 views

Ordering custom post type by multiple custom fields

I was wondering if you'd be able to help with an issue i'm having? I have implemented a fix that you came up with in this post: How to order custom post type by multiple custom fields? however when I ...
0
votes
0answers
43 views

Strange behaviour using 3.8.1

I have upgraded some of my blogs into 3.8.1 and I am experiencing a strange behaviour. I have created in the past two types of themes that use mostly the same mechanism, assigning page templates. The ...
1
vote
1answer
41 views

How to Output which matched meta_keys were found from custom_type_posts?

In WordPress on the single-player.php page which displays a single profile (from numerous other profiles) with information from around 10 different meta fields. Without using tags or categories.. ...
1
vote
2answers
27 views

Displaying Custom Taxonomies From Multiple Custom Post Types

I have multiple custom post types and each of them has multiples categories. I'm trying this code to display certain categories from all of the custom post types + regular post. <?php query_posts( ...
0
votes
1answer
40 views

Two single.php files?

I have a custom post type "people". For each person, I can enter the following custom fields: "address", "occupation" and "pictures". In the single-people.php I display the address and the ...
2
votes
1answer
33 views

What are the advantages of using a custom post type archive?

I'm currently working on a theme that makes heavy use of custom post types to structure the content. To display a lot of the content I am using the respective archive-$posttype.php but this seems in ...
0
votes
0answers
21 views

Template for Custom Post Type and its Category

I have created a custom post-type ( Testimonials ) and i have custom taxonomies for this post-type to separate the testimonials. Custom Testimonial Taxonomies are 1) Commercial 2) Residential Now, i ...
-1
votes
0answers
25 views

Creating a second custom public author page

I'm sorry if this question have already been asked, but I couldn't solve my problem after reading similar issues. I have my author page (www.mysite.com/authorname) that works well and takes the ...
0
votes
1answer
24 views

show previous/next post orderer by title in custom post types

What's a working method to show link to next and previous same custom post type article, ordered by title and not id? (generally applying a filter to the order)
0
votes
1answer
60 views

Add metabox with media uploader in a custom post type

I need to create a "media uploader metabox" and add it to my custom post type. I've already create normal metaboxes, the function to add to the custom post type and the function to save them, I only ...
0
votes
1answer
17 views

Rewrite rules causing hole

I am using rewrite rules to catch /events/date/* Events is the custom post type I am working with. So archive-events.php, is normally my index, but with my rewrite rules, I need to identify a ...
1
vote
1answer
23 views

Check if current user has post in post type and is author role

I want to check to see if the current user has already submitted a post in our custom post type and if they have, and they have the author role then add inline style to the header to hide some ...
-1
votes
1answer
27 views

is this a bug or not?

When we make a custom post type (in my case 'news'(slug is news also)) and a page is with name 'News' (with slug 'news'). Then when I add some pages with parent 'news', it's displaying 404 in ...
1
vote
1answer
41 views

Hide specific parent categories from post edit

I have many custom post types and they all take advantage of wordpress categories. I therefore have several parent categories for each custom post type. Is there a way to hide the other parent ...
1
vote
1answer
39 views

Admin Pointers on a custom post type

Is it possible to leverage the Admin Pointers code (core, non published API) to create pointers on a custom post type? I was trying to use a plugin called Easy Admin Pointers, but it does not support ...
1
vote
2answers
45 views

A page that shows a list of a specific custom post type

I've created a custom post type called 'product'. I want to add a page link to 'products' in the menu, but I don't have that option. I would like to know if there is a way of displaying it the same ...
1
vote
0answers
17 views

sub CPT and CRUD

I need to create a child CPT for a parent CPT and display CRUD for the child CPT in a metabox of the parent CPT 'create post page'. For example: Suppose a vendor have different products. I need to ...
-1
votes
1answer
22 views

Custom Plugin w/ Custom Post Types - Custom Posts Are Showing at all Privilege Levels - Is this possible to adjust?

We created a custom plugin. The custom plugin allows users to post specific post types. Under each user account, all of these custom post types display under the relative post type. For example, ...
0
votes
1answer
25 views

Custom Post Type Permalink

I have a custom post types called "Emily Davies," "Gemma Patel," and "Poppy Smythe," And I'd like to be access its archives by going to ".../emily_davies" ".../gemma_patel" and ".../poppy_smythe". ...
0
votes
0answers
21 views

Issue with permalinks for custom post type

I have a little issue here... When i'm using default permalinks, everything works great, but when I set up %postname% permalink in settings, my template with custom post type is not loaded. ...
1
vote
2answers
94 views

Generate Shortcodes by Taxonomy

Check this code: function slide_group() { register_taxonomy('Group', 'slides', array( 'hierarchical' => true /*visualizza come le categorie*/, 'label' => ...
2
votes
1answer
42 views

Filter next_post_link() and previous_post_link() by meta_key?

I have a page with two sections, each uses a different WP_Query() to pull in events, which are a custom post type. Each WP_Query() queries a meta_key for the event date so that Section 1 only displays ...
0
votes
1answer
27 views

Setting a custom $query->query_vars['meta_key'] breaks the WordPress menu

First of all, my problem is very similar to this one: http://stackoverflow.com/questions/10629245/wordpress-menu-disappears-when-query-query-varsmeta-key-is-set However, the answer accepted for this ...
0
votes
0answers
27 views

custom post type and taxonomies in a php class

I used this class in the tutorial to create two custom post types http://code.tutsplus.com/articles/custom-post-type-helper-class--wp-25104 According to add_taxonomy() function if the taxonomy ...
0
votes
0answers
22 views

After rewriting post type's URL, the number of queries has increased dramatically

I rewrited the URL of post type, and the main loop ( example.com/post-type/ ) generates an expensive number of queries. So I have a post type "cd" and taxonomy "artist", and the url are: ...
0
votes
1answer
23 views

Conditional Statement custom post type category

I would like to display a text depends of my custom taxonomy category, like: if custom post type category is X, then echo Text Y. I've tried this, but its not working: global $post; if ...
0
votes
1answer
38 views

What's an efficient way to change the post status of many posts at once?

I'm looking for an efficient way to change the post status on many posts at once. I have a custom post type that I'm using as a means to store content that must be approved by a moderator before being ...
0
votes
2answers
48 views

action init hook and get_post_types

Why if I register a custom post type by add_action( 'init', 'custom_post_type' ) hook it doesn't show in returned array by get_post_types function? Example: function test(){ $args = array( ...
-1
votes
1answer
28 views

Page templates for custom post types

Currently wordpress "pages" can have a particular page template associated with it. Can this feature also be available for custom post types ?
0
votes
1answer
33 views

SQL to update custom post taxonomies

I have a custom post "review". It uses the same categories and tags from default posts, so they share "category" and "tag" taxonomies. But later I changed the "review" register to have their own ...
2
votes
0answers
48 views

Custom Post Type Alerts

I setup a custom post type and everything works right. The user can submit for review and I see it's pending in the admin area. How can I have WordPress send me an Email Notification whenever a user ...
0
votes
1answer
30 views

Different permalink for CPT and regular Posts/Pages but why?

Permalink structure in Back-end: http://domain.com/%year%/%category%/%postname% For "regular" Posts/Pages all is okay but as soon a CPT is shown %year% is gone? Url shown for Posts/Pages looks some ...
0
votes
0answers
16 views

Many to Many select metabox

How can i create a metabox on a custom post type similar to how you input tags where it's free text - auto suggest drop down selection while adding multiple values to the category? For instance if I ...
0
votes
1answer
23 views

Check category_name or taxonomy slug for a Custom Post Type?

I am checking the current page I am on and then using that to set a variable to change the category name like so. <?php if (is_page('apples')) { $categoryname = 'Apples'; ...
1
vote
1answer
48 views

Create a permalink structure with custom taxonomies and custom post types gives 404

Based on topic How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name My code is // register the new post type ...
0
votes
1answer
44 views

Enable revisions for custom post type

I have created a custom Post Type, and Registered it. Can someone help me how to enable revisions to Custom Post type?
0
votes
1answer
38 views

Taxonomy rewrite pagination 404

I have rewritten my taxonomy url to the name of my posts type 'filter'. Because I have done this, my pagination does not work anymore on the url: http://www.website.com/filter/term-name/ So if I ...
0
votes
0answers
20 views

Filtering in admin broken for custom post type in 3.8.1?

Is there a known issue with the All, Published, Scheduled and Drafts filters in the post listing page for custom post types for 3.8.1? The links update as well as the URL, but the listing doesn't ...
0
votes
2answers
49 views

Custom field totals

I have tried searching everywhere for this and although there are some discussions about adding the total to the frontend, there is nothing about the admin side. I have a custom post type that has ...
0
votes
1answer
36 views

How to call Shortcode categories for custom post types?

Hi I'm trying to do something rather tricky in my Wordpress Theme I'm more of a designer front-end developer so its a bit of a guess work with php. Anyone have any ideas why this code only displays ...
-1
votes
0answers
35 views

WP custom template doesn't work

I have some trouble with a custom template. I have used for some other pages also a custom template and that works fine. Only when I have a slug as CMYK, it doesn't work. The template is selectable ...
0
votes
1answer
63 views

How to filter the taxonomy terms based on another taxonomy term

I have created a custom Post Type called "Tour" which Holds up-to five Taxonomies called "destination", "Types", "Month of Travel", "Year of Travel" and "Led by". Now I brought them as drop-down ...
1
vote
3answers
56 views

Displaying Custom Post Types In “At A Glance” Meta Box

I found the following snippet will displays the number of Custom Post Types published in Dashboard's At A Glance widget, like this: Is there a way to turn that "81 Wrestlers" text to a link to the ...
0
votes
0answers
25 views

Child page Custom post type return 404

I have a custom post type with this structure parent/child-1/child-2-of-child-1/child-3-of-child-2/ All child return 404 error. My CPT settings are: $rewrite = array( 'slug' ...
0
votes
0answers
32 views

Adding 2 CPT with multiple custom taxonomies to permalinks

I have two custom post types with hierarchical custom taxonomies that I'd like to add to my permalink structure. I'd like to achieve this: ...