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

learn more… | top users | synonyms (1)

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
30 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
38 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
57 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
45 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
25 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
30 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
16 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 ...
0
votes
0answers
45 views

Help paginating custom loop

i'm trying to add some sort of "load more" button every X posts in this loop: <?php if(is_home()) : ?> <section class="pages clearfix"> <div ...
0
votes
2answers
172 views

Getting Bootstrap accordion working in Wordpress loop with custom post type (collapsing issue)

First off I am well aware that there is a plugin but I am NOT talking about the BS Short code plugin. I am talking about the actual bootstrap accordion. So here is what I am trying to accomplish, I am ...
0
votes
1answer
56 views

WordPress custom post type archive with description

I have a common design pattern I'm not entirely sure how to best execute in WordPress. The layout is a listing of post teasers (title, trimmed body, image) on an overview page. Let's say example.com ...
0
votes
1answer
39 views

Modifying rewrite rules to use <custom post type>/category/<custom taxonomy term>/

I know I can add a rewrite rule to accomplish this but I'd like to affect the links generated by WordPress (such as when I put a custom taxonomy term into a menu) I have spent the entire day today ...
0
votes
1answer
29 views

Custom post type with new taxonomy [duplicate]

I have a CPT called "products" so in the menu on the left there is "products" and "add new", I want to have "product categories" within the menu too so that the user can add as many product categories ...
0
votes
0answers
20 views

Capabilities of a Custom Post Type and et_post_type_capabilities()

I created a custom post type item, and gave it custom-named capabilities as below. function register_custom_post_types() { $args = array( 'labels' => array( 'name' => ...
0
votes
0answers
14 views

Make a custom permalink for a specific category

I would like to make 1 post and check off 2 categories, say cat1 and cat2. I want cat1 to spit out my post like this : site.com/past-name Then cat2 to spit out the same post like this : ...
0
votes
1answer
23 views

Post query missing an elseif statement

I have a custom post type query which currently successfully returns tbe posts requested in the order specified. I would like to add an 'elseif' statement if there are no posts but am having ...
0
votes
0answers
30 views

Sort by meta_key

I want to sort products by height, but some of my products like accessories don't contain height section and they're automatically disappear when I sort by height. Is it possible to sort by height ...
0
votes
0answers
25 views

very simple event post type

What I want to achieve is to have an extremely easy and minimalistic event management on my WP page. I have already a post category called Events. I need only to add to that a nice two fields: date ...
0
votes
2answers
21 views

Echo post count of CPT with current taxonomy

I have a CPT called 'Athlete' and a Taxonomy called 'School'. Two sample terms have been added called 'term1' and 'term2'. When a user views the archive for any of the 2 terms (taxonomy-school.php), ...
0
votes
0answers
29 views

Wordpress Custom Post type child page 404 page not found error?

I am having custom post type articles and when I try to display the child page it gives me 404 page not found error. I tried to display the request variable display first the post type articles with ...
0
votes
2answers
20 views

Custom Post Type and Custom Taxonomy not connected

I am using the following code to create a Custom Post Type and a Custom Taxonomy: // Register Post Type add_action( 'init', 'cptui_register_my_cpt_resource' ); function ...
0
votes
0answers
49 views

Recent Posts Widget to display Custom Post types doesn't display content

I have created a few custom post types on my site (WP 4.0 / TwentyTen Child Theme) and I was hoping to create widgets to display them on the sidebar. The custom post types work well but the widget ...
0
votes
2answers
80 views

How to get a list of term names of the custom post type im currently on in single.php

Ok so I have a custom post type of "Products" and a custom taxonomy of "Types". Now in the types taxonomy I have dozens of categories and sub categories assigned to custom post types. Custom Post ...
2
votes
1answer
112 views

Custom query - alternate posts by category

I have a custom post type called "services" with a custom taxonomy called "location". Each post is categorized as either "Location A" or "Location B". I need to query all posts from the "services" ...
0
votes
0answers
70 views

WP-API Custom Post Type json_no_route

I have created a custom post type and extended the WP_JSON_CustomPostType class as in the documentation, I can see the custom type when I go to wp-json/ but as soon as I go into wp-json/quizes it ...
0
votes
2answers
55 views

Get posts by category name

I'm having a terrible time trying to figure this out. I've registered a custom taxonomy (clinical-programs) and like to list all the PAGES that are assigned to particular page(s).
0
votes
2answers
85 views

Cant get paginations on single.php to work with my custom post types

I'm using custom post types and custom fields plugins for my custom post types. I have all other paginations working smoothly on my website except for my single.php. I have a custom post type of ...
0
votes
1answer
27 views

How can I make custom static widgets/areas on my homepage?

I'd like 2 areas on my homepage which will be static but can be editable with tinyMCE or whatever editor WP uses instead of hardcoding HTML in the Widget editing area. What would be a way I can go ...
0
votes
1answer
34 views

query multiple taxonomies

I have a function set up to show 'Similar Products', i.e. showing products that share the same products-category taxonomy term. This works great but I want to narrow the function even further and make ...
0
votes
1answer
32 views

Custom Post Type & Page Template

I have a custom post type : add_action('init', 'dossierinfo_register'); function dossierinfo_register() { register_post_type( 'dossier' , array( 'label' => __('Dossiers'), ...
0
votes
1answer
39 views

Custom Post Type - Admin Columns

I'm getting these 0's in front of my categories and tags: https://www.dropbox.com/s/7v9hvf25wsw15p8/Screenshot%202014-11-08%2020.50.02.png?dl=0 Here's what the code in function looks like: // Work ...
0
votes
1answer
38 views

add_meta_box Callback not being called

I created my first plugin last week that makes a custom post type. As this worked, I copy pasted the code I already had and modified it to be a different post type. For whatever reason however, the ...
0
votes
1answer
48 views

Price comparison table based on Custom Post Type?

I have created a review site where clients can rate their hosting providers based on various factors, however since the launch, many have asked if it would be possible to create a price comparison ...
0
votes
1answer
27 views

Limit taxonomy terms added to a custom post type

I've created a Custom Post Type and a Custom Taxonomy. In WP Admin, how can I limit amount of taxonomy terms that are added to the custom post type? I want to add no more than one tag into the post. ...
0
votes
0answers
42 views

Some questions regarding post-types and pagination

I've built my own theme from scratch using the HTML5 Blank Framework My problems started when I added 3 differen post-types; Work, 50mm and Findings. I've hided the standard 'Posts' type, so that I ...
0
votes
3answers
48 views

Custom meta box in custom post type not working

As a wordpress newbie I am having problems in adding custom meta box in my "slider" custom post type which I used in some old wp theme. I'm getting a warning: Warning: call_user_func() expects ...
0
votes
2answers
47 views

Adding class to featured image

I have specified a loop to show featured images for my custom post type and wish to add a img-responsive class from bootstrap to my featured image. How can I do this? Thanks! Code: <div ...
0
votes
0answers
47 views

query and paginate multiple post types

I'm looking to query multiple post types and paginate them so the results are across multiple pages. The markup I have is as follows: <?php query_posts( array( 'posts_per_page' => 100, ...
0
votes
1answer
28 views

How to limit what Editors see in the admin?

I have a site with a bunch of custom post types, and a few plugins. I would like it so that editors ONLY have access to see posts when they visit a site. Does anyone know of how I can do that? I ...
1
vote
1answer
139 views

WP Admin default view mode for Custom Post Type

To change it globally to excerpt for every post type I can use: function my_default_posts_list_mode( $default ) { return 'excerpt'; } add_filter( 'default-posts-list-mode', ...
0
votes
1answer
24 views

Query custom post type and showing its content

I am a newbie in developing wp themes and having troubles showing my cpt. I added new cpt in my functions.php file: // Creates Testimonials Custom Post Type function testimonials_init() { $args ...
0
votes
0answers
12 views

Custom Rewrite Tag Structure

I am pondering over this intriguing question and I have yet to find an answer. I need to add my own Custom Structure Tags for my cpts. Extract fromt he link above: %year% The year of the post, ...
0
votes
2answers
31 views

What is the best way for showing a grid of customer logos?

I'm speaking about the frequent "our customers" section, usually a grid of customer logos that link to their respective websites/success case posts. The site owner should be able to add or remove ...
3
votes
2answers
73 views

How to hook into the CPT's title placeholder?

I want to change the default placeholder text in my Custom Post Type title field. This isn't possible while registering a new post type. The following screenshot describes it.
0
votes
0answers
23 views

Get list of registered custom post types

How can i get a list of all custom post types registered and show them on any template page. I have code like this. <?php /** * Template Name: Custom Post Types List */ ...