Custom Post Types extend the WordPress back-end to support additional, non-Post content.
1
vote
2answers
125 views
I need basic help with custom post types
Basically here's my project:
I have to create a back-end wordpress gui user input section. The user will enter details about their projects like name, location, what it is, some other details. A page ...
1
vote
1answer
621 views
Custom post type permalinks giving 404s
I'm having trouble setting up permalinks for a custom post type.
Below is the code from my init function:
register_post_type('topic',
array(
...
'hierarchical' => true,
'query_var' ...
1
vote
1answer
1k views
How do you modify the 'post_parent' of a custom post type?
I want to be able to edit the post_parent of a custom post type. Basically in my use case I want to mimic how WordPress uses attachments: have a custom post type that is sort of a subtype to post or ...
1
vote
2answers
373 views
Add common Post Actions to Custom Meta Column
I've created a custom post section and removed all of the default items (title, editor, etc...) using add_action and added my own custom meta boxes.
The Issue:
Since i've removed the default Title ...
1
vote
2answers
599 views
Help with issues on “Adding a Taxonomy Filter to Admin List for a Custom Post Type?”
This question relates to a solution found here from user somatic and mikeSchinkel
I am testing somatic's solution, and it loads and populates the dropdown with no issues, but When you click filter, ...
1
vote
1answer
783 views
Is there a way to use regular categories with custom post types?
Is there a way to use regular categories with custom post types? It seems like there is better functionality and options with regular categories (such as permalink options, etc.).
1
vote
2answers
2k views
custom post type edit / publish hook
What hook gets called when I edit or publish a custom post type of name 'episode gallery' ?
I tried following but none worked.
add_action('save_post', 'update_custom_ngg_table');
...
1
vote
2answers
1k views
“More” span making trouble
I've created my own custom post type using this tutorial: http://thinkvitamin.com/code/create-your-first-wordpress-custom-post-type/
Everything works fine, but I'm having major problem with "Read ...
1
vote
3answers
464 views
single-type.php not working, delivering 404
I've created a custom post type, and have successfully added a few entries. I can call these entries out with query_posts() to show on the front page, but the_permalink() on each of them just sends me ...
1
vote
2answers
878 views
display different template based on post type
Hay, i have a custom post type "Events", however this is basically a post type, so it inherits the post.php template page.
Is there anyway to use a different template (i.e events.php) if the content ...
0
votes
1answer
23 views
Pagination problem in custom post type used as front page
I am working on a theme with custom post type.
the issue currently is that i am saving the layout files in a folder called templates.. and in front-page.php i am using an options check to see which ...
0
votes
2answers
94 views
$wpdb returns no results with SELECT query on custom post type, works on default post type
EDIT: Adding more background info.
I've coded a plugin that adds a meta box to the post page. When the post is published, the plugin will generate a random ID for the post, and insert the random ID ...
0
votes
1answer
40 views
Determine which template-{slug}.php is being loaded
I am trying to make a personal plugin that does specific things based on what is loaded. In this example, in my action method I want to perform one function if the currently loading page is using the ...
0
votes
2answers
52 views
How to get the custom post type from an archive page?
In my website I have three custom post types: scripts, scenes and plugins. When visiting the archive page of a single post type (i.e. by going to mysite.com/plugins) you correctly see all the posts of ...
0
votes
1answer
99 views
wp_query and comment_parent - select only posts with top level comments
I have a custom post type of 'films', and I'm creating a number of search filters using wp_query. All are working fine, but I now need to add in an option of exclude results that dont have any top ...
0
votes
1answer
68 views
My archive-posttype.php template is not loading
I'm trying to create an archive-photos.php template for my photos custom post type. The problem I have is that when I view the page it is the archive.php template that is used, not the ...
0
votes
2answers
76 views
How to get postname in custom page?
I'm adding custom pages in WordPress and trying to handle WordPress with my own CMS.
I'm using all WordPress' hooks to manage all these things. Now, I can make a custom post saying "a new album" but ...
0
votes
1answer
253 views
Add Standard Page Attributes Metabox for Page Parent
I have a custom post type 'product' supplied to me by a Wordpress eCommerce plugin that does not offer the option to change the Page Parent in the Page Attributes Metabox. I'd like to remedy that.
I ...
0
votes
1answer
241 views
Get post info inside modal window?
What I'm Trying To Do
I have set up a custom post type for 'movies' and below is how I set up the template. Basically, I am trying to get a.thickbox (in the code below) to open a modal window with ...
0
votes
1answer
147 views
How to Debug the 'save_post' Action?
Is it possible to validate PHP code?
I have a Custom Post Type (Film) with Custom Meta Boxes.
Everything is working fine, I can add new Films and details to the Custom Meta Boxes.
My problem is ...
0
votes
1answer
90 views
WP_Query post at custom position
Lets say I have a custom query which based on two custom post types:
$wp_query = new WP_Query(array(
'post_type' => array('post-type-1', 'post-type-2'),
'post_status' => ...
0
votes
3answers
428 views
How do I require authorization / login to view a specific set of posts / pages?
I am working on a wordpress site for a client who wants an internal 'intranet' for his employees. The basic needs are:
Communicate things in-house
House important company documents
Provide quick ...
0
votes
1answer
153 views
How to stop wordpress from mangling HTML in a metabox textarea
Can anyone lend a hand and suggest the best way to get a textarea in a meta box to stop mangling HTML? I've been digging around here online... and here...and also here...looking for answers, but I ...
0
votes
2answers
452 views
How Do I Use WP_Query to Run This Database Query as Search Result?
I have created a search box with a drop down box of 4 options to customize the search:
A general default search, no filter
A custom search according to the post title for a custom post type only.
A ...
0
votes
1answer
366 views
Multiple permalinks for a single post with multiple taxonomies
I created 1 custom post type (projects) with 2 taxonomies (clients / fields) to filter the results (like categories).
At the end, it should be like this where project_name is the same custom post ...
0
votes
1answer
312 views
Is there an easy way to AJAX-ify saving of post?
We have a plugin that allows us to manage custom post types and we'd like to add AJAX functionality in saving, editing, and deleting posts. I couldn't find similar problems in the internet so I'm ...
0
votes
1answer
2k views
Creating a gallery custom post type?
Hi I was wondering if it is possible to create a custom post type called "Gallery" where i only upload photos and ad captions and when i post it, it post as a gallery. Also when it shows on the ...
0
votes
3answers
355 views
How to select one major category (or custom taxonomy) for a custom post type?
I've created a hierarchical custom taxonomy (genre) and want to use it for a custom post type (radio station). But I don't only want to assign some genres to a radio station. I also want to be able to ...
0
votes
2answers
157 views
prevent sub categories to show up
i created filterable portfolio using this tutorial
http://wp.tutsplus.com/tutorials/creating-a-filterable-portfolio-with-wordpress-and-jquery/
everything working well , but it grab the sub tags and ...
0
votes
1answer
164 views
show posts only on homepage but using custom post type and taxonomy for query posts via url
I would like to do the following:
I have a index.php file in which I query all posts from the existing post_types. Like the code below.
<?php if (is_home()); { ?>
<?php
global ...
0
votes
1answer
158 views
Setup page template array in a custom post type
Hi below is a 'case' (in a custom post type) for pulling all categories and displaying them as a drop-down menu. How can I do the same but turn it into a list of checkboxes?
//tax_select - this ...
0
votes
1answer
303 views
WP_Query pagination using only numbers instead of /page/1 on URL
I don't get whats happening here.
I'm on a child-page template, generating a WP_Query for Custom Post Types on the fly, like this:
$notrel = new WP_Query(array(
'post_type' => $type,
...
0
votes
1answer
275 views
How to programatically set the post title of a CPT on wp-admin
I've been playing with custom post types & custom fields, using a combination of the types plugin and the advanced custom fields plugin, also having done the same manually.
Occasionally I want to ...
0
votes
1answer
170 views
Help with hierarchical custom taxonomies and permalinks…almost there
I'm trying to get permalinks working with custom taxonomies and custom post types. Following the instructions here I was able to get it almost working, but one small glitch.
The code to register ...
0
votes
1answer
222 views
front end radio custom taxonomy with custom post type
Hi my good friends I need your help better than losing my mind, first I have to thank "Stephen Harris" for his good article ,
-second: After a lot of searching I still don't know how to inject a ...
0
votes
1answer
454 views
Pagination throws 404 error on custom taxonomy archive pages
I have created a custom taxonomy for a custom post type called "portfolio" like so:
function jvs_portfolio_categories_init() {
register_taxonomy(
'project-category',
'portfolio',
...
0
votes
7answers
2k views
Paginate Custom Post Type Page
I created a page for my custom post types. The code can be viewed on Snippi: http://snippi.com/s/e8852rx
I'm trying to insert paginate_links, but for whatever reason it's simply not showing up. ...
0
votes
2answers
1k views
Displaying related posts in a custom post type by a custom taxonomy
I'm trying to display related posts by a custom taxonomy (product_tags) in a custom post type (products). The following code works, but it ignores posts_per_page.
Any ideas?
global ...
0
votes
2answers
497 views
Order custom posts by a date metabox
I have a custom metabox, where I store the date in plain text like this: dd/mm/yyand now I need to order the posts by that date.The custom field is called event_informations_date
<?php
$args = ...
0
votes
1answer
45 views
Running a function on post content and CPT meta
As per this thread I'm scheduling a wp_cron every hour which runs a function. The function I'm running is reasonably lengthy and I didn't want authors to have to deal with the waiting times.
My ...
0
votes
1answer
316 views
Having trouble with custom post type / meta box
I've been working on a custom post type meta-box implementation that allows me to change the post_date to match the value in my "date" meta-box.
The function works perfectly except when I try to add ...
0
votes
1answer
304 views
Remove default post types on all sites except primary blog. WPMU
I'm trying to come up with a solution that would allow me to remove the default post types (pages, posts, comments, links, etc) from all the multi-site blogs EXECEPT the primary blog. It will remain ...
0
votes
1answer
248 views
Comment moderation on custom post types
I know that I can require all of the comments on my site to be moderated, but is there a way of forcing moderation for a specific custom post type (i.e. my CPT "species") whilst allowing instantaneous ...
0
votes
1answer
710 views
Using 'strtotime' function to convert a custom-meta-box to a date-stamp
I am building a "podcast" post type in a wordpress build using custom-post-types, meta-boxes & taxonomies. There may be a simpler way to do this.. I'm still learning and this is my first go at ...
0
votes
1answer
36 views
Managing event dates vs published dates in admin custom post type
I have a custom post type which uses dates and i have my custom columns set up in the admin. I need to be able to do order by that column by default - i have tried this code which I found on the net ...
0
votes
2answers
872 views
Load custom post type in a different WordPress installation
I am trying to display a list of posts (custom post types) coming from a different WordPress installation (to make things more clear, my client wants has two separate sites, and they want to list ...
0
votes
2answers
442 views
Custom Post Type, Two categories, Two columns with Pagination
I searching a lot to found a way solves that and no luck at least.
Sorry for my unpulish english, I do my best explaining my issue.
I have a Custom Post Type called 'Events' this have two categories ...
0
votes
1answer
194 views
Is there a widget that can display a certain Custom Post Type Terms?
I am looking for a widget that a user can choose a Custom POst Type Term from a list.
As an example I have a Custom Post Type called events and it has multiple categories.
I want the user to be able ...
0
votes
1answer
216 views
How do I create a custom post type for a training CMS in WordPress?
I need to create a custom post type based on the existing 'Page' type, for a WordPress based training CMS. I have no problem simply creating a new post type, but I would like to offer some kind of ...
0
votes
1answer
227 views
Custom Meta Box with variable number of fields
Here is what I wanna do and I basically would just like some ideas from someone more experienced that would help to get started in the right direction.
I have a custom post type (Exams) that has is ...
