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

learn more… | top users | synonyms (1)

0
votes
1answer
34 views

How to completely disable a taxonomy archive on the frontend?

I have registered three custom taxonomies. All three of these custom taxonomies are attached to my custom post type. There is only one taxonomy out of the three registered, that I would like not ...
1
vote
1answer
56 views

Add content before/after admin post wp-list-table

I know there are two hooks to add content before and after a taxonomy wp-list-table. Is there an action to add content after the post type wp-list-table on the edit.php page? For $taxonomy List ...
1
vote
1answer
50 views

Unable to get paginate_links working with a custom query [duplicate]

I have built a news section in my Wordpress site with the advanced custom fields and custom post type ui plugins. On the custom news overview page (not the standard wordpress posts) I wanted to limit ...
1
vote
0answers
11 views

Posts 2 Posts: Get related posts from user connected to current post? [closed]

Hopefully someone can help with this. I have a CPT called "Tours", and I'm using Posts 2 Posts to connect Posts inside that CPT to Users. Relationships being: Tour Item 1 > Tour Operator 1 Tour ...
0
votes
1answer
16 views

Adding a date archive to Custom Post Type

Having a little problem with URL rewrites. Trying to get the following URL to display all the sermons in 2014 http://example.com/sermons/2014 Currently it is looking for a sermon called 2014 ...
0
votes
0answers
30 views

Ordering posts by custom taxonomy in admin area

EDIT @kaiser - this question is slightly different to the answer you posted in that I am talking about sorting by clicking the column title rather than adding a dropdown to filter by taxonomy term ...
-2
votes
1answer
22 views

Custom Field Search

I'm trying to create a custom search form that searches a custom post type that I have created. The form would need to search two custom taxonomies (similar to tags and categories) and the body text ...
0
votes
2answers
39 views

Using global $post; to get featured image for custom post via WP_Query

I'm using a site-wide function to add css to the <head> of the page pull in featured images of various as a responsive page background. It works great across the rest of my site but fails on a ...
1
vote
1answer
28 views

Query custom post type only if it contains another custom post type

I currently have a custom post type named "blog". On registration, every user gets automatically a post "blog" linked with their user ID. This custom post type queries another post type named ...
0
votes
1answer
30 views

Not sure why this template for custom post type posts isn't displaying anything. What's missing?

<?php /** * Template Name: Movies */ ?> <?php get_header(); ?> <div id="container"> <div id="content"> <?php $type = 'movies'; $args=array( ...
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
67 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
38 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
44 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
41 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
24 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
25 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
66 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
24 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
43 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
41 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
46 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
44 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
28 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
29 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
23 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
39 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
51 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
29 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
36 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
51 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
24 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
52 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 ...