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

learn more… | top users | synonyms (1)

0
votes
1answer
56 views

Hide child term posts on parent term pages

I have created a custom post "company" and custom category "company category". I have a question here, I want to hide child category post in primary category . Any suggestions?? Example : ...
1
vote
1answer
63 views

Custom Post Type by Taxonomy

I have two custom post types - office and professional. Each professional needs to be tied to an office. I've created a custom taxonomy, 'tax-location', applied it to both post types to tie them ...
-1
votes
0answers
9 views

hwo to show category with child categories and post count [duplicate]

i want to show a specific post category like a tree show category under the child categoreies with post count and when click on a category get posts of that category like this below example `main ...
0
votes
1answer
36 views

Nested custom post types templating

I have multiple custom post types which I nested thanks to a plugin and post I found. I have a custom post type 'landen' ( which should be the parent post type ) and a child post type 'rondreizen', ...
0
votes
1answer
28 views

Custom post type - posts list - white screen of death

i am getting a weird error - white screen in the list of posts for a specific Custom post type (just for that one) tried deactivating all the plugins tried checking for error (debugging = true) ...
0
votes
0answers
25 views

Display parent category with child categories and post count

I want show to specific parent category with child category like a tree see below example main parent catgory (50) child category (25) child category (15) child category (10) ...
0
votes
2answers
39 views

Which custom post type does the current post belong to?

I have looked all over the Codex and searched the web and I cannot find a way to accomplish what I am trying to do. All I need to do is display what CPT a post belongs to. For instance, I have two ...
0
votes
1answer
23 views

How to get current get_post_types name?

How can I get the current custom post type name and echo it on a page? Casper
0
votes
0answers
35 views

Use one template for different custom post types with the same markup

I am wondering how I can create one template for multiple custom post types. How can I achieve this?
0
votes
1answer
66 views

Sort Order for a Custom Query in a Post Type Archive Not Working

I have a custom post type for events set up and am displaying the posts in a custom post type archive "archive-events.php". I am using Advanced Custom Fields to put an event date "event_date" on ...
0
votes
1answer
29 views

Custom taxonomy archive is visible to only subscibed users

I have a custom taxonomy (lesson) that helps divide posts and other custom post types between different views over the data. Now I have the custom taxonomy page expanded and visible. ...
0
votes
1answer
18 views

If is custom post type archive page

If I need to check custom post post type is movie, I can use following code. if ( 'movie' == get_post_type() ) I need to check, if it is custom post post type Archives Page? ( www.domain.com/movie) ...
0
votes
0answers
34 views

Events with multiple event dates + permalink for each date

Hope you're well. I was wondering how to achieve something like this in wp: Bascally it's a list of events ordered by the event date. I know how to do that. But the tricky part is that an event may ...
0
votes
0answers
19 views

Single page of CPT

I'm trying to create a single page of a CPT. My cpt: <?php // CONVENZIONI CPT + TAXONOMY function cpt_convenzioni() { $labels = array( 'name' => _x( 'Convenzioni', ...
0
votes
2answers
49 views

Custom Post Type Permalink Page Not Found

I've been wasting hours and hours trying to solve a permalink issue with custom post types. It keeps returning page not found (404). When I use the default permalinks, it works, but when I switch to ...
0
votes
1answer
26 views

post_type_exists keeps returning false

I have a little helper class for registering new custom post types. However, it seems it is registering the custom post type on each page load. I put in a small check for this: if( ! ...
0
votes
0answers
93 views

Custom Post Type URL

I have big problems get the result with my custom post type and taxonomy I have made. I have read a lot in the questions and tried also many, but don't know where to find the solution or where to ...
0
votes
1answer
27 views

Custom taxonomy (categories) on custom post type return no results

Hi everybody and thanks in advance for helping. I am experiencing a problem with the categories I have created for my custom post type: when I click on the URL of the category (every category) I get ...
0
votes
0answers
12 views

I need to change my wordpress permalink structure to mysite.com/taxonomy/post_type/post_title

I have three post types like post_type1, post_type2, post_type3, which are having same taxonomy "region" now i need my permalink structure like mysite.com/region_name ...
1
vote
0answers
13 views

Add custom post type drafts to RSS feed

I have an RSS feed setup for my custom post types, but I'm trying to add in all posts with the status 'draft'. Here's what I've tried that doesn't seem to be working at the moment : function ...
0
votes
1answer
32 views

How can I remove the “Add New” button in my custom post type?

I have many custom post types that need the Add [custom post type] feature but I have a custom post type of "About" and I do not need to "Add New" about to the about custom post type. So I want to ...
0
votes
1answer
74 views

How to filter post data with AJAX on page?

I have build a custom post_type with "Work items" in order to enter my personal portfolio items. The "Work items" have taxonomies like "Graphics", "Websites" etc. I am able to display them all in an ...
0
votes
0answers
16 views

custom post types menu

I am wanting to create an accordion menu of states and cities that are defined in a custom post type. The cities are defined in a custom field of the post type and the states can also be a custom ...
-1
votes
1answer
32 views

Custom Post Type Loop inside Array [closed]

I current have a custom post type loop: $args = array( 'post_type' => 'locations', 'posts_per_page' => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : ...
0
votes
0answers
28 views

How to avoid hardcoded text in a custom page template?

I'm developing a company Website using Wordpress 4. This website needs some special, customized pages - with forms and GET and POST and a lot of stuff, so a lot of PHP code. Now, a CMS' main purpose ...
0
votes
1answer
15 views

How to query all custom posts of a certain type and checking what category they have

Here's what I have: Custom Post type: Vendors Vendor categories: Wedding Party Catering I want to query all Vendors and then assign them a class based on the category they are in. The class ...
0
votes
0answers
10 views

How to change post status link order(priority) on cpt listing page

On a custom post type listing page the registered post statuses are listed as links above the post lists. I've a situation where custom registered post types are showing after 'trash' and I still want ...
0
votes
0answers
19 views

How to add a new menu item in “Twenty fourteen” theme?

I've created two menus inside of my theme's functions.php file: register_nav_menus( array( 'primary' => __( 'Top primary menu', 'twentyfourteen' ), 'secondary' => __( 'Secondary menu in ...
0
votes
0answers
13 views

Native Category taxonomy used with multiple post types show wrong numbers of posts attached to it

I have two custom post types i.e. Deals and Articles and both have native category attached to them. I then created multiple Deals and attached different categories to it. It all worked fine and ...
0
votes
1answer
37 views

How do I show my <p> containing my custom field ONLY if there is a set value on that custom field? [closed]

I am using the Custom Fields Plugin and have 2 custom fields assigned to my "products" custom post type. Field 1. Price Field 2 Discount Price So this is my code: <div class="wrapper"> ...
0
votes
0answers
28 views

WP_Query by a category id and a custom post_type

I need to query all posts that belong to a given category (default, not custom) and a custom post type. As simple as that. The fact that it doesn't work, to me, is ridiculous. Unless I'm missing ...
0
votes
1answer
22 views

How to create user groups and allow custom posts and plugin modify/access to specific group?

I am looking for plugin or is there any method/function to create user groups and give an access them to modify/access.
0
votes
0answers
23 views

Query stopped working

The following code stopped working, not entering the while loop at all although there exist 'staff' posts. How can I start trying to find out what's going on? Only think that's changed I think is I ...
0
votes
1answer
19 views

admin_head-post.php only works after publish / update

I have made a custom post type with some admin back-end. Currently I am calling scripts using the hook admin_head-post.php but this only seems to fire once a custom-post type has been created (on ...
0
votes
0answers
29 views

Multiple post types

I'm using the "Types" plugin for Wordpress to create two custom post types and it works fine. I built custom templates on the base of archive-slug.php where the "slug" is the post type slug. It ...
0
votes
1answer
47 views

Exclude categories For Custom post types

I have category 1, category 2, category 3, to category 7 and custom post types Gallery, Article, Front Row.. How can we restrict the admin to choose the category for custom post type Gallery to Cat ...
0
votes
1answer
23 views

How to allow a custom user role to create, edit, delete a specific custom post type only?

I created a custom post type called Traveller Post using the following code snippet: /* custom post - traveller posts */ add_action( 'init', 'traveller' ); function traveller() { ...
0
votes
0answers
17 views

Assign posts (CPTs) automatically to certain subpages

my next website has this structure: Home (Page) Departments (Page) Department A News (Page with Custom Post Type) Events (Page with Custom Post Type) About (Page) Department B (see ...
0
votes
0answers
29 views

Custom post type slug rewrite blocks pagination - how to solve this?

I have run into a problem while doing what was given as a solution in the following thread: Remove Slug from Custom Post Type Namely, after all of this being done, my pagination no longer works. As ...
0
votes
3answers
28 views

Template to list categories in custom taxonomy

I refer to this post where I have just taken my code from: How to display a listing template of a certain taxonomy? I am trying to create a page template that will list all categories in ...
0
votes
1answer
37 views

Permalink of custom post type partly broken

I'm running into some issues while working with a custom post type (CPT). The problem is that the permalinks of the CPT are fine for a single post but not for the archive/overview page. The website ...
0
votes
1answer
50 views

Displaying different custom post types under one admin menu

I am creating multiple custom post types that have hierarchies, and a few of them are strongly related like a parent-child. For example, a house custom post type has bedroom and kitchen custom post ...
0
votes
1answer
43 views

shopping cart plugin development

I'm developing a new shopping cart plugin for WordPress. At a point, how to save orders, I am stuck, sort of confused. Actually I am not sure whether I should save order through options api or create ...
0
votes
1answer
24 views

Create category only for custom post type

All, I'm creating my own post type using the following code: add_action( 'init', 'create_team_post_type' ); function create_team_post_type() { register_post_type( 'team', array( 'labels' ...
0
votes
0answers
25 views

Post Editor: display categories from current post type taxonomy only?

I have a custom post type and a related taxonomy which is called "Asset_Type": Which is perfect. However, if I create a post with the default Wp Post type, I still seem them as categories: I'd ...
0
votes
0answers
28 views

Custom post type search shows “Not unique table/alias” error

If I search for a value on the page that shows the custom post type list ( edit.php?post_type=my_post_type ) then it returns normal results. But because I wanted to include the post meta fields in ...
0
votes
0answers
9 views

Managing a tracking ID

I'm looking for advice on being able to create a custom tracking section within a wordpress site. In it's most simple form, the website will offer a service that users will be able to buy and then ...
0
votes
0answers
24 views

Linking custom post categories and post categories

I am using Posts 2 Posts which links between my posts and custom post types on a single page. For example I have a post about printing business cards and a coupon (custom post type) displayed in the ...
0
votes
0answers
15 views

Hierarchical relationships with different custom taxonomies [duplicate]

I have a custom post type: Cars and two custom taxonomies: Makes and Models. I already created a front-end post submit form using those three elements but as you may imagine from the title, I want to ...
0
votes
1answer
25 views

Prevent custom taxonomy from being added to admin menu?

I have several custom post types, which share two custom taxonomies (location and service). The custom taxonomies show up in each post type menu, and it just seems a little redundant. My client isn't ...