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

learn more… | top users | synonyms (1)

6
votes
3answers
2k views

Nested custom post types with permalinks

I am trying to set up a multi-level custom post type structure with permalinks that look like authors/books/chapters, with authors, books, and chapters all set up as their own custom post type. For ...
0
votes
1answer
651 views

Adding a Custom Field to be used by Posts 2 Posts

I'm trying using Gravity Forms and allow for a user to submit a post to my CPT, and choose an optional Connected Post Type. I have two CPTs, CPT1 and CPT2. When they're viewing my form for creating ...
0
votes
1answer
318 views

Order Categories by Hierarchy?

I want order my categories by hierarchy. But I want to use custom select name, id and class like this: <select name="kategorisec" id="cat" class="postform"> ... </select> and I want to ...
0
votes
4answers
729 views

Does WP have a global of $id?

I'm trying to attach an object to every post of any type. This will require post ID to populate or create my object. So, I either call global $post, or get_the_ID(), or do get_post(). I hope there is ...
-1
votes
1answer
92 views

Shortcode in a page to display custom posts which also have a shortcode in them

I have created a shortcode [get_custom_posts] to be inserted in a page (the default page post type from WordPress) to get posts which are from a custom post type. In each post from that custom post ...
2
votes
1answer
226 views

Merging two Custom Post Types into one

I am new to all this so my ignorance may get in the way. I inherited a WP Blog with Custom Post Types. There are 4 Custom Post Types, out of which 2, Books and Magazines, have the same fields: ...
2
votes
1answer
971 views

Pagination gives 404 error

It's seems that this bug of WP never was solved by WP team. I have custom post-type, my url structure is /%category%/%postname%/ And if i click on 2nd page i will get 404 error. I tried everything i ...
0
votes
1answer
1k views

forming WP_Query for posts of all post types but from specific categories

I need to get post from blog, custom post type 1, custom post type 2. custom post type 3 and either from category 1 or category 2 or category 3 or category 4 or category 5 or category 6 or category 7 ...
0
votes
1answer
1k 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 ...
2
votes
1answer
203 views

custom post type permalinks with category and tags

I have a custom post type called 'designs' and have registered taxonomy 'design_category' and 'design_tag'. I'm trying to get the permalinks as follows but not having much luck - seems having 2 ...
1
vote
0answers
61 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 ...
0
votes
1answer
729 views

How to have multiple archive pages?

I am building a site that needs pages such as News, Events, Projects and People. My question is, how should I achieve this in WordPress? Do I use custom post types? And if so, how do I have a page for ...
0
votes
1answer
131 views

Post type Echo code is repeating on homepage

Hi i'm using this php code that allows me to call a div in different post type, but the only problem is when i add a second line instead of it showing only on the post type page it shows on the home ...
0
votes
1answer
1k views

Calling a div and content in php?

Is there a code that i can place in the header that will call a certain div and the content i place inside it for every custom post type i have, Somthething like this. <?php if ...
1
vote
0answers
208 views

Magic Fields 2 custom post type disappeared [closed]

You can see the highlighted custom post type 'Learning Civilization', but it seems to have disappeared from the magic fields menu. I have uninstalled and re-installed the plugin, thinking it was a ...
1
vote
1answer
72 views

How should I structure my post types?

For the site I am making, I have a few post types: News, Events, Projects, Placements. Each one of these post types will need its own archive page, accessible through the navigation. I am able to ...
0
votes
1answer
255 views

Multiple Stylesheets For Post and post type?

Hi i'm asking this question here because i don't know exactly how to put this into words on google lol. But I have a blog and i am using custom post type and each post type will have a different ...
0
votes
1answer
3k 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
1answer
540 views

array_pop() expects array, boolean given for $event_type_term ->slug

I have the following function I wrote … add_filter('post_type_link', 'events_permalink_structure', 10, 4); function events_permalink_structure($post_link, $post, $leavename, $sample) { if ( ...
0
votes
1answer
99 views

Associating post id with its post type

i'm making modifications to a portfolio theme. the theme has the blog and portfolios. the portfolios are custom post types with their respective taxonomies. the theme homepage only displays one ...
1
vote
1answer
84 views

Can anyone help me with galleries and post types?

Hi i'm opening a blog and i am using custom post types. I don't know if i'm doing this wrong or right. Check out wetpaint.com For example they have a page for every show that they cover, i don't ...
0
votes
1answer
217 views

Invalid Taxonomy in template

I have looked through the posts here that involve this same error, without any luck. I have a Custom Post Type (Staff) and a custom taxonomy for it. Making Staff posts and assigning terms is working ...
0
votes
2answers
452 views

Serial Number Delivery System Using WordPress

I'm developing a system where user can buy scratch card number using pre-paid balance. I already created balance system using user meta. Now I need to delivery card number to users upon payment. As ...
0
votes
1answer
487 views

Custom post types with categories in template

I´d like to do something like this: Pages: 1. Sport 2. Business 3. Normal Custom Category "Car-Types": 1. Audi 2. BMW 3. VW My custom post type will called "Cars" I´d like to show the cars ...
-1
votes
1answer
964 views

How to feed custom post type to a facebook page?

I built my portfolio using custom post type. Later I created a Facebook page for my website under my FB account. Please advice how I can push from WP my work to FB. Image project description No ...
0
votes
1answer
132 views

Types plugin isn't compatible with my custom post type

I have a website with a few custom post types. I have also installed Types plugin so I can use a custom field to upload/display images on the home page of the website. I've found that the code seems ...
0
votes
1answer
1k views

Custom post_type search's $wp_query->query_vars do not correspond

I have been having this issue, with integrating events manager among my other post types, where the other custom post types show up in the $wp_query->query_vars array, except for the event manager ...
0
votes
1answer
467 views

Displaying custom taxonomy menu in custom post type archive

I have two post types "restaurant" & "pub", they both share same custom taxonomy "country". And I display each post type in archive page. What I want to do is, when I visit "restaurant" archive ...
2
votes
1answer
122 views

Custom Post Type “Event” with custom permalink structure

I need some help about Custom permalinks for custom post types. I have created a custom post type called "evento" and 3 custom fields for storing date, month and year of the events. I would like to ...
0
votes
1answer
260 views

How can I modify this blog loop to display custom post type posts?

Here's my code to generate a two columm blog index page. I want to modify it so that I can use it as an index page for my portfolio custom post type- query_posts('post_type=portfolio'). I know that I ...
2
votes
1answer
362 views

Adding posts of custom type into the main feed

I'm having some trouble with a subject that seems to be pretty basic, so I'm starting to feel (a little, only a little) dumb :-) Here's the thing: I want my main feed to include the posts and other ...
1
vote
0answers
446 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 ...
2
votes
2answers
505 views

Pagination Issue: Custom Post Type In Index

I'm using a template, which uses Custom Post Type 'movies'. When I try to change the page I got 404 Not Found :( This is my index.php <div id="content"> <?php $temp = $wp_query; $page = ...
4
votes
2answers
3k views

How do i display the post type title?

Hi i was wondering if there is a way that i can display the custom post type title. For example: I have a custom post type entitled "Pretty Little Liars" and it also shows on the homepage, but how ...
4
votes
4answers
3k views

$wp_query->queried_object->ID throws warning: Undefined property

<?php $current_term = $wp_query->queried_object->name; $current_term_id = $wp_query->queried_object->ID; ?> <hgroup class="section-heading wrapper"> ...
1
vote
1answer
2k views

wp_list_categories() - current-cat class also inside posts?

I wrote my own function to list all taxonomy terms of a certain taxonomy … function wr_list_taxonomy($taxonomy, $orderby, $hierarchical) { $show_count = 0; $pad_counts = 0; $title ...
0
votes
1answer
329 views

How to Create a Frontend Html-list Editable in the Backend?

I would like to add a feature to a page to display a short list of people, like the one seen here. I have done this on other sites by styling lists with css. This time however, it's for a client and ...
1
vote
3answers
58 views

custom post type search by reference id

I have a custom content type of tab_content with a relationship to a page. In my current script I have the id of a page and I want to do a query that will list all the children of type tab_content ...
0
votes
1answer
81 views

How can I add custom fields in a custom post type? [duplicate]

Possible Duplicate: How to Add Custom Fields to a Custom Post Type? I'm creating a custom post type for my wordpress site. But I want to remove the editor an put a field for uploading ...
0
votes
3answers
3k views

Custom Post Type to Upload Images

I'm wanting to create a custom post type that can upload 2 images to display on the home page of a website. How would I attempt this? The images needs to be displayed underneath each other. Thanks!
1
vote
0answers
173 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. ...
-2
votes
1answer
303 views

Front end post or photo or both

I need a help in correcting my code that can front end post or attach image or post&attach image ;) Now I can send a 'post' and 'post with photo' but can't send just a photo, How can I do that? ...
1
vote
2answers
345 views

Why doesn't a custom post type permalink ever hit index.php

So, I've got an entirely custom theme which has a number of custom post-types. I've also got a custom taxonomy which I can visit on the front end with URLs such as: ...
1
vote
0answers
201 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 ...
0
votes
3answers
393 views

Custom post type code hides navigation

Hi I have this code for custom post types add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() ) $query->set( 'post_type', array( 'post', 'page', ...
-2
votes
1answer
369 views

What Is My Fault With This WP_QUERY ? [ Pagination Problem ]

I did a photo gallery with custom post type. The pagination works correct but, if I click to a category, then it must show all photos of the category with pagination, but page 2 not found. You can ...
1
vote
0answers
85 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 ...
0
votes
1answer
793 views

Custom Field values not Showing in Edit Page of Custom Post Type

Custom Field values not are not showing in respective fields while i click the "edit" button .. they just show blank as we are creating a new post.I am able to save the values in custom field while ...
1
vote
2answers
141 views

Post Quote with image on header for news site

I'm working on a news website. (wordpress.org) I want to add a quote on the header with an image. Please have a look at this For this I want to add a check box on the post publish section ...
0
votes
3answers
225 views

Multiple custom post types on same admin page

Here's my situation.... I'm creating a plugin that will allow families to register on the site I'm working on. Each family will have 1 or more children that they need to add to their registration. My ...