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

learn more… | top users | synonyms (1)

0
votes
1answer
1k views

How to create Custom Taxonomy Search Drop Down for specific Post Type

I have a number of custom post types which share a custom taxonomy. I'm trying to implement a dropdown search box using php (to insert into a widget or elsewhere) that allows selection of a taxonomy ...
0
votes
1answer
538 views

How can I sort the order of multiple custom field values in a custom post type?

Here's the website: KunzlerIP At the bottom of the website, you see a slider using Fancybox. Each thumbnail pops up some content from an individual custom post type post. For this custom post type, ...
5
votes
2answers
2k views

Why won't my metabox data save?

I have a custom post with a lot of meta boxes. I recently tried to add some dynamic metaboxes, using this question: Create more Meta Boxes as needed I managed to get the metaboxes to add nicely, the ...
1
vote
3answers
82 views

Is it possible to use Wordpress as an online portfolio for text content? What kind of theme would I look for?

I'm trying to build an online portfolio for a quantity of text content I've produced. I don't have to skills to design it myself or the money to pay someone, so I thought using a CMS with a free theme ...
1
vote
1answer
322 views

orderby in custom WP Query does not work

I have this query: $new = new WP_Query(array('post_type'=>'support','order'=>'DESC', 'meta_key'=>'post_views_count', 'orderby'=> 'meta_value_num', 'posts_per_page'=>'20')); the ...
1
vote
1answer
2k views

how can i get posts from custom post type particular taxonomy category

I have registered custom post type Article in my template using register_post_type function. and i also having taxonomy category for this article posts. Here i want to filter the posts under ...
3
votes
1answer
1k views

Custom post type admin search

Is it possible to search in custom post type meta fields? I have posts, with many custom meta fields. Wordpress by default search only in title and in content. How can I change it? If you didn't ...
1
vote
1answer
94 views

Programmmatically adding a Custom Post

I've added a custom post type, on the 'init' action, like so: // Setup the 'Classifieds' Post Type $labels = array( 'name' => _x('Classifieds', 'post type general ...
0
votes
1answer
402 views

Custom post type - columns order

So I have created a custom post type with custom values and customize my custom post type admin columns. You can see here how my custom post type is looking in admin panel. And as you can see I can ...
0
votes
2answers
67 views

preselected custom fields in custom post type

I have a custom post type called "stock" and each post is going to have a stock_id, stock_name, stock_description and stock_available fields,...I would like to have defaults for these fields so the ...
2
votes
2answers
2k views

Custom Post Type Permalink / Rewrite not working immediately

Hitting a brick wall with the following: I have: 1 custom post type called cpt_community 1 custom taxonomy called tax_community If I set 'rewrite' => true in my CPT registration, then ...
2
votes
1answer
53 views

Optimised Code for Pulling Taxonomy Posts

I have created a CPT called 'stores', each store has a taxonomy registered to it called 'store-type' (i.e. whether it's a fashion store, or kids etc). There is a third taxonomy 'floor'. A store can be ...
0
votes
1answer
449 views

$post not working working in AJAX plugin with custom post type

I am trying to create a plugin that can relate two posts to each other, and to do so I am trying to use AJAX, but I am having trouble getting the current posts ID using $post->ID. I am trying to ...
2
votes
4answers
4k views

Get custom post type by category in a page template

I've created a custom post type with categories and sub categories, what I need to do is list out the post titles and images for a given sub-category or category in a page template. I've got as far ...
1
vote
1answer
2k views

how can I create a calendar for a cpt, using get_calendar or other

I have a custom post type with its own date field. the date is setup for unix YYYY/mm/dd I need to create a simple month calendar that shows days that have a cpt on them. get_calendar works for ...
0
votes
1answer
184 views

Extending post by email

Just putting my feelers out on this one, I need to be able to accept incoming emails and add them as posts, however I want to be able to do a bit of processing first, for example I want to change the ...
0
votes
1answer
78 views

Parent a CPT to a page

I have my custom post type set up with hierarchicy set to true and the url works like: Lions News › S1 › Test Post 1 which is nice except that it should go one futher and be like Lions Minis › Lions ...
4
votes
1answer
507 views

Rewrite rule for Custom post type Monthly and Yearly archive

I have a custom post type "contest_recipe". I can view contest recipe posts by year and by date with the following urls: http://example.com/2011/?post_type=contest_recipe - shows all 2011 contest ...
0
votes
1answer
310 views

Custom taxonomy labels won't display

I created two custom taxonomies (Majors and Seminar Types) related my custom post type CEMB Seminar and the labels on the menu, instead of showing the labels I put in are showing "Post Tags". See a ...
7
votes
3answers
4k views

How to enqueue scripts on custom post add/edit pages?

I'm trying to enqueue a JS script only when someone is adding or editing a custom post type I created called "recipes". Currently the script works ok when I do this: if (is_admin()){ ...
0
votes
1answer
571 views

get_the_term_list() wanting to loop through the returned values

I have a custom post type, I am echoing out my custom taxonomies in my template by doing the following, get_the_term_list( get_the_ID(), 'work', '<li>', "", '</li>') , this currently ...
0
votes
2answers
173 views

Why doesnt my tag page populate with this custom post type?

I have a tag page that is generated with the first image attachments from all of the posts. I call it in the loop with : <img src="<?php echo get_first_attachment() ?>" /> and this is ...
1
vote
1answer
91 views

A question on creating filters for custom posts using taxonomy

This is my first foray into custom post types and taxonomies. I created a taxonomy-services.php page to display posts that are associated with the 'websites' slug. That seems to be working fine. ...
1
vote
1answer
1k views

Register Custom Post Type from Plugin

I'm trying to register a CPT from a plugin upon activation but seem to have hit a wall... Anyone see anything im missing? I don't get any errors but the CPT doesn't show up in the dashboard ...
0
votes
1answer
332 views

creating a foreign key like relationship with custom post types

I am currently building a website, that is heavily reliant on custom post types, 2 of my custom post types are "Clients" and "Case Studies", now what I am wanting is a way to create a dropdown in the ...
0
votes
1answer
231 views

Include a metabox in the 'home' screen of a custom post type? If not, then the dashboard page?

I have a page with a simple YouTube embed. I would like the client to be able to easily switch the video id from the dashboard without having to edit any templates. Something like this: <iframe ...
1
vote
4answers
1k views

Redirecting when changing custom post type slugs?

I changed the name of two of my custom post types. The original slugs for them did not properly reflect the post type. So I need to redirect requests for posts beginning with designer_lingerie (the ...
2
votes
1answer
397 views

Warning when attempting to edit/add custom post type

I have two custom post types in my WordPress installation. Both are set up the same way in functions.php (one called "Media" and the other "Testimonials"). For some reason, I'm now getting the ...
0
votes
1answer
703 views

List custom taxonomy terms

I am trying to display all of the terms for a custom taxonomy(characters), the taxonomy is related to a custom post type(books). What I would like to do is display all of the terms for characters, so ...
3
votes
2answers
466 views

Copy a Taxonomy Term into the Post Title for a certain Custom Post Type

I am using Gravity Forms to allow users to create posts from the front end. However, the way this site I am building is going to work, one specific Post_Type is essentially just a "Data" post. There ...
2
votes
3answers
4k views

Custom post type pagination 404 fix?

Been trying to get this working all day but haven't had any luck... I have a custom post type called 'news' and an archive template (archive-news.php), here I'd like to show 2 posts with pagination, ...
0
votes
2answers
959 views

Category.php template for custom posts

I'm trying to use my category.php file to display all posts of a certain custom post type (say "Company") with a given category. However, when I try to use it by navigating to ...
2
votes
3answers
2k views

Do_Shortcode not working for Embed

I'm trying to use Custom Field types to embed Youtube videos in a more organized fashion and using the Do_Shortcode() would seem to work perfectly, however this: <?php echo ...
0
votes
2answers
2k views

Remove admin menu for custom taxonomy attached to custom post type

I'm trying to create a taxonomy that is sort of hidden.. meaning i intend to adjust the metabox so that you can only select a unique term from 3 options. "featured","normal" or "excluded". but i ...
0
votes
1answer
458 views

Show the categories the current post has

I have a custom post type; posts of this type can have either one or two categories associated with them. I need to display the names of the categories that are associated with each of these custom ...
2
votes
2answers
974 views

WordPress keeps fetching the archive page instead of the template page

I have a template set up and I've created a page in WordPress and have chosen the corresponding template in the drop down. I have created templates for several pages of this site and they've all ...
0
votes
1answer
40 views

Attaching a Custom Taxonomy to Posts?

Say a plugin creates a custom taxonomy and attaches it to some custom post type. Is there a safe way to attach that same taxonomy to Posts?
0
votes
1answer
295 views

Custom Post Type fields not showing in dashboard

I have a custom post type for 'Teams' set up using the code below. However, the fields for 'Latest Discussion' and 'Next Fixture' isn't showing up in the dashboard. I went over the code numerous times ...
0
votes
2answers
441 views

Trying to create a custom post type, post type box doesn't show up?

I have a custom post type set up with the following in my functions.php. The problem is that the post thumbnail box doesn't show up in the dashboard in the "Talent" section even after I specified ...
0
votes
2answers
919 views

Remove All, Published and Trashed Post Views in Custom Post Type

I want to remove the below text links in Edit Post screen: All (8) | Published (5) | Draft (1) | Pending (2) | Trash (2) After searching, i found that this can be done by this code here, but sadly ...
0
votes
1answer
1k views

Insert a Custom Post type into my Loop

I have from my perspective a complicated loop. Code below. <!-- *** Check Mass List (Custom Post Type) *** --> <!-- *** End Mass List (Custom Post Type) *** --> <?php if ...
1
vote
1answer
804 views

I can't set meta_key in my custom post type query

I've created a custom post, events, and saved the meta data event_year to each event. I'm trying to get a year's event archive. When I go the the following URL, the meta_key and meta_value are not ...
1
vote
0answers
781 views

Relationship between two taxonomies and a custom post type [closed]

for a project, I've a CPT products with two taxonomies : category and brand. I would like to build a navigation from a category to a product under a brand. page 1 : list the categories terms page 2 ...
2
votes
2answers
341 views

Want to turn Wordpress into a paid subscription directory

I need to create a paid subscription directory where people can register their business and enter its details. Subscriptions should be paid on a monthly or yearly basis. Business details include ...
1
vote
1answer
525 views

Custom Post Type: Set post_title equal to a custom post type field

I’ve created a custom post type for employees in a company with some fields they have to fill (like E-mail, phone, etc.) and a select box which takes some values from another custom post type called ...
1
vote
0answers
397 views

Date archive shooting 404 when months and days are quarried [closed]

I know you guys have seen hundreds if not thousands of 404 questions. I assure you I have done everything in my power. 1. updates permalinks 2. using /%post_id%/%postname%/ for structure 3. have ...
0
votes
1answer
485 views

Front End Dropdown Showing All Custom Post Type 'Agent'

Title says it all, I pretty much just want to put a dropdown list on the front end that will list all the posts of custom post type 'agent', preferably in alphabetical order, and go to that post when ...
3
votes
2answers
630 views

Why does my custom WP role need edit_posts to edit images?

This may be obvious to someone other than myself. I think I remember reading somewhere that an "image" is indeed a form of "post". I have a custom post type called "listing" I have a custom WP role ...
0
votes
1answer
2k views

Check if a specific custom field exists?

Is it possible to check if a custom field exists for a given post within the loop? For example, I'm using functions like get_post_meta($post->ID, 'Company', true); preceded by a <h4> tag, but ...
0
votes
4answers
558 views

Pagination throws 404

I'm experiencing some problems with my pagination when displaying custom post types. I would like to display 9 posts and then display a numeric pagination. This is working, some links are generated ...