Custom Post Types extend the WordPress back-end to support additional, non-Post content.
4
votes
0answers
111 views
Permalinks so that one custom post type appears to be a child of another, not working
Currently I have two post types, "products" and "products-data" they are separate post types; however, for all intents and purposes products-data is a child post of products. The relation is ...
3
votes
0answers
155 views
Highlighting current item of custom post types' sub pages, listed by wp_list_pages
The below code is for listing the custom post types itself and its children in the sidebar.
The code works great but does not highlight the sub pages.
In functions.php:
...
3
votes
0answers
226 views
Extend walker class with custom post types
I'm using the walker class below, but I can't make it work with custom posts.
class Zwp_Walker_Nav_Menu_Dynamic extends Walker_Nav_Menu {
function end_el(&$output, $item, $depth) {
...
3
votes
0answers
134 views
How to use custom database tables for custom post types?
I need to use an existing database table as a Custom Post Type (CPT) to integrate it with wordpress.
I've considered @boone-gorges thoughts here (should I?) and have decided, Yes, I need to use a ...
2
votes
0answers
37 views
Automatically populate a hierarchical taxonomy from a custom field
I've got a vexing how-to that I've not found any help on. I have a custom post type that has a custom field with a date in it (format: yyyy-mm-dd-t). When a post is published or edited, I would like ...
2
votes
0answers
41 views
Add nonexisting pages to navigation
I want to include categories which are listed in a non-native WordPress table to display within the "normal" wp page navigation
(the table comes from WP-Filebase and is called ->prefix .wpfb_cats)
...
2
votes
0answers
66 views
“Allow Comments” box cannot be checked
I've registered a custom post type, ensured that 'supports' has 'comments', and comments are allowed on new posts under settings -> discussion.
I do see the check boxes for allow comments and allow ...
2
votes
0answers
55 views
How to specify URLS for custom posts & taxonomies
I've read a few posts about this, but can't find a clear answer :(
I have a custom post type called {ondemand}
Within the custom post, I have three taxonomies {speakers} and {categories} and ...
2
votes
0answers
92 views
Custom Fields vs Separate Table
I have a client who wants to be able to upload Posts using information stored in a CSV file. I've already got this portion working.
Just recently, I changed the CSV File Uploader from pure PHP to an ...
2
votes
0answers
69 views
Post Link Filter Help
I Am probably being a complete tool here but I am trying to change the permalink on my custom post type to a particular category child. The code in essence works but I cannot for the life of me figure ...
2
votes
0answers
87 views
Enforcing canonical URLs with multiple custom post types
I'm working on a project with several custom post types, where one of the post types is naturally (but not actually in the WordPress sense) the 'parent' of the others. For example, say I have a ...
2
votes
0answers
208 views
Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
I have a custom post type "packages" with a taxonomy "Celebrations" that has a few terms in it.
When I try to add a link to my wp nav menu through Appearance > Menus and choosing the term I want from ...
2
votes
0answers
124 views
Custom Post Type Events Archive Grouped By Month
I'm currently trying to get my events listing code to print out headers by Month. So basically this:
October
event
event
September
event
event
etc...
Right now it just keeps echoing ...
2
votes
0answers
784 views
query_posts with a custom post type, a meta_query and sorting by post date?
I've searched the archives and found questions similar to what I need, but haven't found exactly what I want.
I've got a bunch of products that are sorted by a meta_key of country, and I'd like to be ...
2
votes
0answers
97 views
Custom Post Type vs. User Page
I'm creating a multisite network for authors and readers and I want each blog author to create a user profile.
Ideally I would do this through a customized user admin area with a bunch of added ...
2
votes
0answers
398 views
Hierarchical Custom Posts - Highlighting Current Post in Sub-Menu
I have created a hierarchical custom post type called events and have used wp_list_pages to list the sub-posts for each event post (See below). This navigation works great, but I cannot figure out how ...
1
vote
0answers
15 views
Admin Area Custom Type Search By Meta Fields Without Title & Content
I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code:
...
1
vote
0answers
32 views
RSS feed for dynamic set of custom taxonomies terms
I've got a CPT called 'Job' and three different taxonomies associated with it: location, type (permanent/contract) and expertise.
I've got a filter on the website that allows to search for jobs of ...
1
vote
0answers
38 views
Unable to delete custom post types, confusion around capabilities
So I'm working on a plugin for creating a questions/answers system that's as simple and well-integrated as possible (not unlike this site) but am stuck at the creation of the custom post types.
You ...
1
vote
0answers
201 views
Featured image metabox not showing up
I have a theme installed on WordPress Multisite 3.5.1 which has a one custom post. Now I wanted to have two more so I have created them. Everything is working besides one thing. The featured image ...
1
vote
0answers
43 views
Lost of query parameter when using permalink
I have many issues with the use of rewriting, but i'll just point out one in this post to be specific.
In my theme i use custom post type, with custom taxonomy
function custom_post_realisation() {
...
1
vote
0answers
25 views
next_/previous_post_link() `in_same_category` appears to fail when true
I'm using the Modernize theme's custom Portfolio type page. In the single-portfolio.php template, I call next_ and previous_post_link(), which correctly display links when in_same_category is set to ...
1
vote
0answers
30 views
Custom permalinks rules don't match and lost of query var in the process
For my theme i created custom post types (realisation, video).
All is working now without the rewriting, but i have trouble when i apply rewriting.
my urls are like this :
1) ...
1
vote
0answers
55 views
CPT Parent as a page and CPT Child as a posts
I have one CPT page named as books and one CPT post named as chapters, I am trying to achive this permalink structure here
book1->chapter11
book1->chapter12
book2->chapter21
...
1
vote
0answers
105 views
Adding Sticky functionality to Custom Post Type Archives
In WordPress, Custom Post Types do not have Sticky functionality as a core feature. It is possible, I'm sure, to create it in certain cases—and I'm working on a project that requires it for ...
1
vote
0answers
95 views
Wordpress add_permastruct unwanted matches
I'm working on a project which involves filtering some customs posts on the front-end. I managed to create the permalinks including a custom field, but it seems that the rewrite rule matches some ...
1
vote
0answers
72 views
Query custom post types and a specific page?
I'm using this query WP_Query('post_type=product&posts_per_page=8') I need to include a specific page into the query but not sure how to add it since I'm only specifying the custom post type? Is ...
1
vote
0answers
101 views
Custom Post Type - Duplicate Page Slugs
I have 2 custom post type registered in my functions file, sectors and projects. There are pages with the same name and hence URL in both post type. My problem is that WordPress wont allow the same ...
1
vote
0answers
74 views
Custom post type conditional in loop
I need multiple loops on a page and have created them as such
global $post;
$args = array( 'numberposts' => 3, 'category' => 10 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : ...
1
vote
0answers
127 views
get_query_var() not working in pre_get_posts
I'm using the pre_get_posts hook to order the main query on all my custom post type / taxonomy pages using a custom meta value. As part of the logic, I am trying to determine which taxonomy is ...
1
vote
0answers
63 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:
...
1
vote
0answers
29 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 ...
1
vote
0answers
92 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' => ...
1
vote
0answers
104 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 ...
1
vote
0answers
81 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
0answers
111 views
Custom Post Type Nav to Subpage
I've registered a post type for an audio plugin, the post type is "Custom Players" in the admin and has its own tab on the admin sidebar.
I'm just curious if there's a simple way to move this out of ...
1
vote
0answers
52 views
Post revisions don't save or show up only for custom post types
My website makes use of a number of custom post types as well as the traditional "posts" and "pages" types. For all "posts" and "pages" revisions show up as they should, with a history of edits ...
1
vote
0answers
193 views
Single custom post type's menu ancestor/parent is Posts archive page
I have created a theme by copying twentyeleven default theme.
I have also installed a module Custom Post Type UI and created a custom post type called "Book".
I have gone to Settings -> Reading ...
1
vote
0answers
49 views
can these 3 queries be re-written as 1 query?
I am creating a Dentist directory site, and I have a taxonomy archive page which requires particular grouping and sorting (see below). So far I have only been able to achieve this using 3 WP_Querys ...
1
vote
0answers
29 views
How do I list terms of a custom taxonomy at i.e. domain.com/brands/
I have a custom post type 'products' with custom taxonomy 'brands'. My URL structure should be:
domain.com/brands - should list the brands
domain.com/brands/brand/ - should list products of the ...
1
vote
0answers
55 views
Custom taxonomy and post type with same slug
I'm using the plugin "types" to register the custom taxonomy and post types,
and got 404 when using the same slug for them to display them hierarchy, like this:
site.com/tax //taxonomy archive
...
1
vote
0answers
88 views
Loosing Nav Active State in Menu
In the following section:
http://www.zimmernutrition.com.php53-23.ord1-1.websitetestlink.com/learning-center/
In the sidebar, if you click "Health Articles" and click one of the categories, the ...
1
vote
0answers
46 views
Listing and accessing categories for a custom post type
I have two post types: Projects and Events. I want each of these post types to have their own categories: Upcoming and Past.
I have an archive page displaying the posts in these types. However, on ...
1
vote
0answers
281 views
Wordpress custom taxonomy template not working
I installed theCartPress plugin and it created tcp_product_category taxonomy for tcp_product post type. I created a page with custom template to list all the product categories.
I can use ...
1
vote
0answers
115 views
dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
In my site I have one custom post types with custom taxonomies:
custom post_type=listings --> Category --> Tags
Along with it, I have some custom fields to separate them by country, state, region.
...
1
vote
0answers
153 views
Custom post type pagination - always return first page
I have custom post template archive-product.php for custom post type "product".
In this template paging does not work:
numbers are displayed
all numbers links redirect to first page
...
1
vote
0answers
55 views
Listing custom terms in custom post meta
I'm trying to list custom taxonomy terms (using get_terms) from within the custom post meta code (i.e., via the add_meta_boxes action). I am getting "Invalid taxonomy" return from the call to ...
1
vote
0answers
348 views
Wordpress capability_type arguments
I don't know how to figured out what's wrong with my code, Why Custom Post Types "Book" doesn't show on my dashboard, I logged as Admin and I use latest WordPress installed 3.4.1
Here with my code
...
1
vote
0answers
45 views
Show fields based on taxonomy selection in editor
I use GD CPT plugin for custom taxonomies and post types.
I wonder if it is possible at all to change the fields user sees in the editor, based on something else (lets say a taxonomy).
Example:
I ...
1
vote
0answers
87 views
Manage Columns : order by post_parent's title
I have 2 custom post types : "industry" (page + hierarchical) and "product" (post + hierarchical). This allows me to use Industry for Product's post_parent.
On the Product manage screen, I have a ...

