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

learn more… | top users | synonyms (1)

1
vote
0answers
24 views

Author Pages For Custom Post Types [duplicate]

Possible Duplicate: Refine custom posts by author I need a way to display author archive pages for custom post types. I already know how to include custom post types into the default ...
0
votes
1answer
358 views

Posts 2 Posts: Display custom types connected to the same other custom type but with another connection

I'm creating a Tennis website. I've got 2 custom types : players and tournaments. I would like to display the result of the finals on the tournaments page and players page. That is to say, on each ...
0
votes
1answer
40 views

List custom posts

I want list all the upcoming and past events(custom posts) in chronological order. I have saved data by meta key start_time,duration , I try to use sql ,but can not get there! Thanks for any help ...
1
vote
3answers
756 views

Custom post type category not displaying in custom post type

I've created a new custom post type (lets call it "Reviews") on the backend of my Wordpress. It works fine for the most part but the Categories I create within that Custom Post Type are not displaying ...
0
votes
3answers
413 views

page not found for single-type.php file

i have created custom post type 'event' to display in single page named single-event.php file but it provides me 404 error. how i can solve this problem even i used flush_rewrite_rules(); ...
1
vote
2answers
1k views

Hide editor while keeping add media button in custom post type

How do I remove Editor in custom post type keeping the Add media button. When I used as following in custom post type declaration, it removes the Add Media button and I don't need editor in my post ...
1
vote
1answer
162 views

Displaying custom field according to date

I am not sure whether this is an Advanced Custom Fields-related question, or a general PHP question, so I have also posted this to the ACF support forum, for those of you who are also looking for ...
0
votes
1answer
242 views

Show list of custom posts with respective attachments?

I would like to construct a query to show a list of custom posts ("podcasts") with the urls to their respective attachments. Each custom post_type ("podcast") has 1 attachment (the mp3 file belonging ...
0
votes
0answers
7 views

is_single query calling the wrong stylesheets? [duplicate]

Possible Duplicate: is_singular won’t call my functions? So I am trying to call different style sheets for each of my post types single page. Here is the code I am using in my header ...
1
vote
0answers
106 views

Custom post type's permalink adds the name of the post type before the post name

So I've create a custom post type which seem to work. however the permalinks of the create posts has the name of the custom post type in-front of the post name. I am getting addresses like: ...
0
votes
1answer
97 views

How do I add multiple post types to this query?

The code i use calls for all attachments that are uploaded to be in the post. I added the Gallery custom post type but nothing shows. It shows on my "pretty-little-liars" post type though. What am I ...
10
votes
2answers
472 views

Set post date before 1970

I have a custom post type called books. The books publication date is from between 1700 and 1900. I want to set the post date to these dates(so i can query the results sorted by year) but i can't ...
0
votes
1answer
1k views

is_singular won't call my functions?

Hi i'm using this code to call for a different stylesheet for a single post type but the problem is, It won't call the stylesheet. It's in header.php, i also tried placing it in single.php <?php ...
0
votes
1answer
812 views

dynamically add a custom field or metabox to custom post type [duplicate]

Possible Duplicate: Create more Meta Boxes as needed I am creating a plugin that registers a Custom Post Type. Let's call it "Cars". I am looking to be able to add custom fields(or ...
1
vote
1answer
1k views

Remove quick edit for custom post type

Is it possible to remove the quick edit function for a custom post type? I have 14 custom taxonomy with hundreds of terms in each and it takes too much time and resource to load all of them into the ...
0
votes
1answer
280 views

Require custom post type if is_admin() - template doesn't show up?

In my functions.php I require PHP files which register custom post types, if I'm logged in as an admin. if (is_admin()) require_once(TEMPLATEPATH . '/custom-post-types/cpt.php'); This works ...
0
votes
1answer
223 views

loop through custom post-type with two meta_keys

I have a custom-post-type named my_project. This post-type has two meta-boxes: is_featured is_featured_position So essentially in my backend of the post-type I can set a checkbox for is_featured ...
0
votes
2answers
1k views

How to customize the Categories meta box to allow only one category?

I'm trying to customize the Categories meta-box when adding a post. I have added a custom post and I need the administrator to post a new post without the ability to use the top level categories ...
1
vote
0answers
37 views

Displaying and searching Custom Posts

I'm trying to convert my existing web site from old-school HTML to WordPress, and have created a series of Custom Posts for my whisky tasting notes. However, I'm stuck trying to set up a page that ...
0
votes
1answer
648 views

Get the latest comment from a custom post type where depth = 1?

Happy new year everyone. I've been struggling with this one for a while. I need to get the latest comment from a custom post type, but ignore any child comments i.e. only look at comments with a ...
1
vote
1answer
255 views

Crafting WP_Query array, sort by date

question about wordpress WP_Query: 'post_type' => 'event_date' outputs dd/mm/yy ex: 31122012 I would like to order my frontend 'event_date' output not by latest WP post entry but by latest ...
1
vote
1answer
444 views

How do I sort a custom post type admin column using two meta keys?

I have created a custom post type along with custom columns. One of my columns displays a date range such as "12/05/2012 - 11:00 am to 12/15/2012 - 1:00 pm". This is a concatenated string using a ...
1
vote
1answer
1k views

Hide/Show only specific categories in wp-admin new-post.php

Can anyone give me a function or an idea of the method I would need to use to hide categories from the selection box in wp-admin? I have a custom post type and I would like my authors to be able to ...
1
vote
0answers
136 views

Custom post query by taxonomy

I am using WordPress 3.5. My query is, $args = array( 'post_type' => array('product', 'comic', 'magazine'), 'taxonomy' => 'Genres', 'term' => 'hot', 'posts_per_page' => ...
9
votes
5answers
4k views

Getting hierarchical custom post type permalinks to work just like pages

I've dug through every question here on custom post type permalinks, but most seem to be either problems with custom taxonomy rewrites, or the obvious missing of flush_rewrite_rules(). But in my case, ...
3
votes
2answers
459 views

Custom database or Custom Post Types?

I have been searching throughout the web for the best way to implement what I need but just cannot find a best solution as there always seems to be some drawback. I'd prefer to do it right the first ...
0
votes
1answer
855 views

Displaying Portfolio Filter by Category Order (alphabetically)

I have created a custom post type to display churches in Europe. I used a tutorial to make it filterable and everything on my site works as normal. How would I organize the posts by country, instead ...
0
votes
1answer
170 views

Function to return values from metabox

I have created two custom metaboxes using the Meta Box plugin for my cpt called books, and I am confused how to output the values. The values need to be used in sperate places in one of my templates. ...
1
vote
1answer
223 views

Customize Search to only search current custom post type

I have 3 custom post types and want the search widget to only search the custom post type it's currently on. ie. If viewing cpt_1 (single or archive) and someone uses the search widget in the sidebar ...
6
votes
1answer
1k views

Hide “Add media”, html editor from tinymce

I have a custom post type which supports editor. (WordPress ver. 3.5) I want to customize the editor for it. Make it readonly Hide "Add Media" button Hide HTML editor Remove status bar showing word ...
0
votes
1answer
49 views

Can I filter a post type based on comment moderation settings?

I want to block front end submitted posts if they contain certain words or website addresses and such. I can set the post type all to draft when submitted but want to keep set up to publish but be ...
5
votes
2answers
3k views

Programmatically publish a post (custom post type) with custom fields

I have a custom post type 'Participant' with many custom fields. I also have a form with corresponding input fields for the user to fill out. When he submits the form, I want a new post to be ...
1
vote
0answers
186 views

Get Tags by specific Category of Custom Post Type

Hey there & merry Christmas Experts :-), if want to have the following Scenario: Custom Post Type "Portfolio" with Tags (Filters) and Categories (Portfolio Groups) Let's say a 1. Webdesign ...
0
votes
2answers
135 views

Generating custom URL before post is published

I have implemented a post_type_link filter for my custom post and this is working great. However, the only downside is that the final URL only seems to be created when the post is published. What I'd ...
1
vote
1answer
3k views

How can I use a different default admin menu icon for custom post type?

For a particular custom post type I'm setting, I simply want to change the default icon to the wordpress pages icon (menu-icon-page). I know I could upload my own pages icon and point to it, but can ...
1
vote
0answers
228 views

Post2Post refusing to show linked posts

I'm trying to construct a catalog page, made out of products and product-categorys. I have set up both post types, and set up a connection between them in functions.php (Using the Posts2Posts plugin. ...
1
vote
1answer
176 views

Embed 'New Post' Form Inside 'New Post' Form

Is it possible to embed a 'New Post' form for one Custom Post Type inside of a 'New Post' form for another Custom Post Type? When a user adds a new post for the custom type 'Event', they should also ...
4
votes
3answers
169 views

Taxonomy + post_type

I'm quite lost with taxonomies and custom post type. I have a taxonomy -> auteur I have custom_post-type -> citation (quote in french). I just want list all citations (quote) from an auteur ...
0
votes
1answer
384 views

Query custom posts of logged in user only

I have a custom post type setup called website I thought using the code below would display only the logged in users posts but it's displaying all of the custom posts even those not belonging to the ...
0
votes
1answer
293 views

Add unique ID number to end of permalink

I'm building a membership based website that will use custom post types to store data. I came across a problem which is if two users happen to create a post using the same exact name, WordPress would ...
0
votes
1answer
1k views

Remove the Publish metabox for custom post type [duplicate]

I have a custom post type for events, and I wish to remove the Publish/Visibility options from the side as they are not relevant to the user. Is there a way to do so?
0
votes
1answer
229 views

Search by tag name and category

How can I return all posts that match a specific taxonomy using <?php get_search_form(); ?> For example: if a user enters a search query that matches the name of a tag or category, search.php ...
-1
votes
1answer
315 views

Drop Down Filter with CPT as Options for Search Form

I am trying to figure out how to create a drop down to use as a filter with the search form. I would like the options to be the different post types. I've seen on other sites that - <select ...
1
vote
1answer
345 views

Custom loop with multiple taxonomy queries

Apologies -- new to the stackexchange and actually posted this over in Stack Overflow because I didn't know there was a WP specific joint. My issue-- What I Have: I've got the code for a working ...
4
votes
1answer
1k views

Filter custom post types in admin not working

Hello I'm wondering if anyone can help me figure this out. Essentially when I click on my custom post type 'Portfolio' in admin, I see a list of 'Services' next to posts, but when I click on one to ...
1
vote
1answer
1k views

Row actions not showing? Why?

I have constructed a WP_List_Table that displays on a custom theme page that I have built. I am having some trouble getting the row actions to display, despite me reviewing all the possible info on ...
0
votes
1answer
91 views

How to keep a record of changes to a custom field?

I have a custom post type that hold real estate listings and I need to figure out a way to keep a record of the price of the property is listed for. For example a user lists a property for sale and ...
0
votes
2answers
832 views

How to output an image or icon for selected check box in a custom post

I have created a custom post type for a property rental site created with WordPress. In it I want to have the input section as checkboxes: and get the output like this:
0
votes
1answer
150 views

Change position of Post Formats box?

I have added post formats support to my theme. The post formats box appears on the bottom of the sidebar in the New/Edit post page. It appears below the Categories, Tags and Featured Image. Is it ...
0
votes
1answer
575 views

Function to add custom HTML into head in custom post-type list page

How can I add custom HTML/PHP file into head where custom post-type list showing like this ? Any Wordpress function can do this ? or I can only do by JS(jQuery) to append my custom content ?