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

learn more… | top users | synonyms (1)

0
votes
0answers
3 views

Get all post from custom post type in custom taxonomy

I am trying to display a custom post type that has custom taxonomy, but I am not having any luck. Nothing is showing up. I appreciate any help. Post type = banner Custom Taxonomy = country The ...
1
vote
1answer
2k views

How I upload, save and set a featured image from my frontend?

I have a form in my site. This the user register one missing person. I created a custom post type missing person, custom taxonomies and custom fields. All this input's save as well in wp. But I ...
0
votes
1answer
28 views

Two plugins sharing the same custom post type registration

I have two plugins Plugin A and Plugin B registering the same post type exp, aws_employee. Each plugin offers different functionality but the post type type they share is exactly the same. If I ...
0
votes
1answer
982 views

wp_insert_post not working for custom post type?

For whatever reason wp_insert_post doesn't work for a custom post type. Here's the code snippet I'm using. $new_post = array( 'post_type' => 'rsp_synonym', 'post_title' => ...
5
votes
3answers
580 views

How to connect different CPTs together?

I hope this question has its place here. I've always thought that connecting different Custom Post Types together is a rather common need, like in popular tutorial examples of custom taxonomy usage ...
0
votes
1answer
670 views

Uploaded image not appearing in custom post type

I am writing a plugin which should allow users to create a custom post type called reseller and attach an image. The image is being uploaded to the uploads folder and appears in the media library with ...
0
votes
1answer
2k views

Custom post type: can't enable comments by default

I want to enable comments for custom post types just like they are for standard posts, but can't seem to get it to work. In functions.php, as part of registering my custom post type, I have this: ...
0
votes
2answers
489 views

How to query for posts (in hierarchical custom post type) that have children?

I'm trying to figure out how to query for posts in my hierarchical custom post type, presumably using WP_Query that have child posts. I can get all pages that don't have children by setting ...
2
votes
1answer
692 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: ...
3
votes
1answer
2k views

Restrict custom post type to only site administrator role

How can I remove this custom post type from being shown in the dashboard for non admin users? /* Add Websites Custom Post Type */ add_action( 'init', 'create_website_type' ); function ...
0
votes
0answers
8 views

Is there any plugin to sum items in a list and then compare the total in some previously registered stores? [on hold]

What plugin/code do I need to use to sum selected items in a list of products and then to compare how much the total will be in a few stores previously registered? Example: I have three supermarkets ...
0
votes
1answer
558 views

Change permalinks for custom post type based on taxonomy term

I have a custom post type 'profile'. Each profile can be one and only one of either student, staff or alumni, which is set through the 'profile_types' custom taxonomy. This gives me permalinks of: ...
0
votes
0answers
15 views

How to edit attachment images title from front-end in a custom post?

i am using a custom post in my wordpress/buddypress blog which can be created and submitted from front end. I also upload images as attachments from front-end using that custom post. When I am making ...
0
votes
1answer
385 views

Can you link custom post types to pages?

The reason i ask is because when i create pages they don't insert the usual name of the post type like CPT's do. For example if i create a page called toyota the URL would be ...
1
vote
1answer
27 views

How to connect two custom post types with nested loops

I have 2 custom post types created: "classes" and "teachers". I have created using Advanced Custom Fields plugin a field for "classes" custom post type, a multiselect that helps me add certain ...
0
votes
1answer
26 views

Custom metabox fields not saving when limited to a certain CPT

I have a series of CPTs, each with their own custom metaboxes. They all work great - display where they should, saving how they should. One issue I have found though is that they also ALL run their ...
0
votes
1answer
15 views

Add data to post edit page, when post is published

I need to customize the "post edit page", for a custom post_type, but to keep things simple let's say it's on the post_type post for now. When the post status is published, I need to run a PHP script ...
0
votes
0answers
22 views

does it need any special functions to write in function.php?

does it need any special functions to write in function.php of template for single-{post_type}.php? I created a custom theme , but it does not move the single-{post_type.php}, my page is ...
0
votes
1answer
14 views

Expandable WordPress content (text) inside a post

I've created a CPT in my WordPress site. In this CPT I have the content element (which is the default WP content) and want to make it expandable, I mean, while viewing the CPT I want it to only ...
6
votes
5answers
5k views

Change “Enter Title Here” help text on a custom post type

I have a custom post type created for a directory that will end up being sorted alphabetically. I will be sorting the posts in alphabetical order by title, so I want to make sure that the Title is ...
1
vote
1answer
417 views

Permalinks for Taxonomy and Custom Post Type

Have the following situation here: Custom post type: 'recipes' Taxonomy for custom post type 'recipes': 'receitas' One of the taxonomies slug: 'receitas-whoopie-pie' The permalink structure MUST be: ...
1
vote
2answers
741 views

Wordpress 3.5 Media Uploader - Only allow 1 upload and certain file types

I am trying to include the new WP Media Uploader in a Custom Meta Box. I found this tutorial: http://codestag.com/how-to-use-wordpress-3-5-media-uploader-in-theme-options/ However i am looking for ...
0
votes
1answer
499 views

Search Custom Post Type & Taxonomies

The site I'm building has a directory element, which has a lot of different business listings; this is a custom post type. It has a Custom Taxonomy called Trades under which are different types of ...
1
vote
4answers
1k views

Display Posts from Custom Post Type with Category Filters

Thanks in advance for any assistance. I have a simple 4 page portfolio site I'm trying to build for myself. The pages consist of: Home Page, Print Design, Digital, and Identity. I have created a ...
0
votes
1answer
29 views

Multiple custom post types showing up in edit.php

I'm having a bit of trouble (i think) over custom post types in Wordpress. I have created multiple post types and they all work, but there is this one thing which is bothering me. Lets say I have ...
0
votes
1answer
414 views

Change custom post type slug from plugin options

I'd like to give users the option to change a custom post type slug in my plugin. Using this answer, I'm able to hardcode it into a function: Redeclare/Change Slug of a Plugin's Custom Post Type ...
0
votes
1answer
66 views

Complex strcuture as CPT or taxonomy for use in woocommerce product variations

In woocommerce, I've got a bunch of products, which all have a certain material assigned. My current implementation of a material is a CPT (with about 20 fields (color, transparancy, reflection, ...
0
votes
1answer
11 views

Custom post type URL - filter by taxonomy

Created CPT = news uses default categories (IT and recruitment) I am struggling to view an archive of the posts based on their category mysite/news/ - shows all posts for that CPT whatever the ...
1
vote
1answer
2k views

How to display custom taxonomies with links in filter menu?

Since two days I am trying to solve a problem with custom taxonomies (categories). I have a Custom Post Type called 'Portfolio' and it works as expected but a problem is with my hierarchical taxonomy ...
0
votes
0answers
16 views

CPT Rewrite Rules by date

I'm having issues with date categorized posts for my CPT. I have permalinks not on the default. I created a CPT with register_post_type and setup rewrite rule as follows. 'rewrite' => array( ...
1
vote
0answers
14 views

CPT Validation to not show “Post updated.”

Now this has been asked several times over on all WP forums, but how you change the success message? First, I know there are 2 choices for managing the error message: setting in the options and using ...
0
votes
0answers
10 views

How to properly make a blog roll?

I know that there's a home.php for the blog roll. However, I've been seeing a lot of WordPress sites lately and their blog rolls are under "articles" or "writing" like "somone.com/articles" or ...
0
votes
0answers
8 views

Custom post type archive URL

I have a vanilla install of WP Using Custom post type UI plugin I have added a CPT called 'news'. Created some 'news' items and then looked in: http://mysite.local/news/ Expecting to see an archive ...
0
votes
1answer
370 views

Loop and add Specific Categories and Products Images

Thanks to Rafael Marques I have a list of Products and Categories organized based on different created categories. I also have 5 different Custom Page Templates. Now I would like to display the ...
1
vote
1answer
870 views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...
0
votes
0answers
13 views

Custom URL Rewriting by Year, Custom post type and Custom taxonomy

I am trying to create a custom rewrite url, but is not so clear for me unfortunately... So my problem is: I have a Media-Resources custom post type and Media Type custom taxonomy. This taxonomy is ...
0
votes
1answer
13 views

Remove custom permalink structure from custom post type without modifying register_post_type() directly

I'm using a custom permalink structure for my posts, /blog/%postname%/. I installed a plugin which registers a custom post type, glossary. I don't want this post type to use the custom permalinks ...
0
votes
1answer
36 views

How can deregister scripts for a certain custom post type?

I use the functions.php to register and enqueue all of the scripts and css for my website. I have one custom post type that i want to pick and choose which scripts get loaded into the ...
2
votes
2answers
890 views

wp_nav_menu() mark current item ancestor of custom post type

This solution does almost what I want it to. Only thing is, I have my menu set up as follows: Menu item 1 Menu item 2 Custom post type 1 Custom post type 2 Custom post type 3 Menu item 3 ...
0
votes
1answer
1k views

WP Rewrite Rules - Custom post type & taxonomy

I've been beating my head against the wall for a few days trying to figure this out. I have a custom post type and custom taxonomy and I'm trying to get my URL's to work. Here is the URL structure ...
0
votes
1answer
13 views

Best way to create a search for custom post type by custom field values

I have a custom post type called people. I want to have 3 search fields for; first-name, middle-name and last-name I was thinking about creating a page with my own search boxes and use query_posts: ...
0
votes
1answer
45 views

Custom post type and custom taxonomies display

I have the following CPT and Taxonomy in my WP: CPT: magazine Hierarchical: true Has Archive: true Custom Taxonomy: authorname (Magazine Author. Not the same as WP Author) Attached to: CPT ...
-1
votes
0answers
8 views

WooCommerce Review System [on hold]

Is it possible to use the woocommerce comment/review system to non product page? If so, how can I use WooCommerece Comment/Review System to non product pages particular in custom post type. I am using ...
1
vote
1answer
3k views

Removing base slug from hierarchical custom post type

I have a hierarchical custom post type called "state". My goal is to have a permalink structure like thus: http://website.com/idaho/ http://website.com/idaho/sub-page I'm close but haven't quite ...
0
votes
1answer
24 views

How to add current custom taxonomy slug to body class

My theme uses custom taxonomy called "kbsection" and there are lots of sections set up (instead of categories). There is also a custom post type and the posts are assigned to sections. I need to ...
0
votes
2answers
28 views

How to get the posts of a custom taxonomy term

I hope someone will help me: I have a Custom Post Type (Movie) with its custom taxonomy (Producer), this taxonomy has its own terms, for example 'WarnerBros'. How I can get all the posts of my term ...
3
votes
2answers
489 views

WP_List_Table inside metabox not working on submit

I'm trying to display a WP_List_table inside a metabox. The metabox is for a custom taxonomy called 'service' which is registered to a custom post type called 'office'. The table columns contain input ...
0
votes
1answer
20 views

Custom posts - tag pagination

I'm using the following code to output the custom posts that belongs to a tag: add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if(is_category() || is_tag() ...
0
votes
0answers
26 views

Using a custom template to fill a page

I have a custom post type, which I would like to display on a standard page (because of my single page layout). I tried this using a custom template, but the page renders completely empty. What am I ...
0
votes
0answers
19 views

Meta box from child theme

I've done some searching and can't find exactly what I'm looking for. I've found this, removing meta boxes but I need to add. I did try changing that to add meta box. I'm wondering if it is possible ...