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

learn more… | top users | synonyms (1)

0
votes
1answer
16 views

Is there a way to make child posts inherit parent post terms?

I have a few custom posts that go from Parent to great grand children. I assign the parent post a term from a custom taxonomy that I would like for all of the child posts to inherit. Is there a way to ...
1
vote
1answer
29 views

Add an option in a builder

I try to add a list of project in the builder of DIVI theme. I have already managed to insert the project_tag list like this : <div class="et-pb-option"> <label ...
0
votes
1answer
16 views

remove custom post type ulr

I have a custom post type called portfolio with three categories. If i make post with it, the url looks like this. http://skateflix.se/?portfolio=route-one. Every fix i tried, every plugin gives me ...
-1
votes
1answer
29 views

Issues on saving data from CPT select metabox

I can't save data from a select metabox. My code is http://pastebin.com/BMmKzti2 Where I'm going wrong? Edit: Here is my code function fichasvtmbasicas_meta_box_callback( $post ) { ...
0
votes
0answers
22 views

Custom frontend post not working?

Hi I am creating a custom post front end submission. This is my code to submit the custom post details. Here the validation is not working as well as it will not submit the post. When i submit the ...
0
votes
1answer
25 views

Change custom post status to draft before today

I tried this code which I made but looks like I am not doing it correctly.. The main problem is my code fetches all posts ordered by meta value date, but I need to hide the posts from the date today ...
2
votes
1answer
253 views

wordpress custom post types and permalinks

I have a custom post type called Content, that has a capability type of 'page' and is set to 'hierarchical' => true. I have two pages with the same name "Children", but they have different parents. ...
0
votes
1answer
463 views

Issue displaying multiple TinyMCE editors with WPAlchemy

I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
0
votes
0answers
49 views

70.000 custom posts on my site

My site have more than 70.000 custom posts. Admin panel not show all posts. how to fix it ? Month filter: more than 4.000 posts. it's normal.
1
vote
1answer
375 views

Get custom post type list for every category shortcode

I am trying to make a shortcode to list all custom posts under the category they are under. Here is my code and I am no expert of coding but i thought that this would work. If someone can tell me what ...
2
votes
0answers
27 views

Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy

I have registered a custom post type "Animals" and also two custom taxonomies ("Vertebrate" and "Type") assigned to it, which have their own specific terms, for "Vertebrate" it will be "Mammals" and ...
0
votes
1answer
36 views

2 wordpress site same database

I have twoo websites on worpdress platform: http://fian.ro/ http://nuovafattoria.ro/ On the server there are 2 different folders with same files, same config but one of them has: ...
0
votes
0answers
25 views

URL/Permalink customization for Taxonomy/Term archive & post

I have a CPT called "Provider", taxonomy called "State" and a term called "Alabama". Is it possible to change the following URL structure from: 1. http://localhost/state/alabama (to view all the ...
1
vote
2answers
22 views

How to call custom posts

I have this custom post: add_action('init', 'eveniment_register'); function eveniment_register() { $args = array( 'label' => __('Evenimente'), 'singular_label' => ...
3
votes
1answer
41 views

get_the_ID() is working on my local development but not on staging server

Great to see a StackExchange for WP! Ok so I'm working on pulling images and dates from piklist custom post types and I got this working on my local, BUT when I move it to WPEngine I get a white page ...
2
votes
1answer
665 views

Using custom post types in submenu + custom title

I'm planning to use a couple of custom post types for a plugin of mine. The whole plugin should reside under 1 toplevel menu item. Thus I would prefer a menu structure like so: Dashboard Posts [...] ...
0
votes
0answers
14 views

404 page is not querying my custom post

I have a 404 template page which is, obviously, designed for Not Found Pages. Within the code, I have the get_header(); where I place the global code for the site. There is a div that contains a style ...
1
vote
1answer
339 views

Pagination on Custom Post Type: 404 Error

I've been getting a 404 error on a CPT archive page, and am not sure why. I can go to the page set for the custom post type archive, but the next page /mycustomposttype/page/2 gets a 404 error. I ...
2
votes
2answers
424 views

Trigger “unsaved changes” dialog for custom post meta changes

I'm using a custom post type with custom meta fields, but autosave and the "unsaved changes" dialog don't seem to be triggered for these custom meta fields. Autosave isn't as important to me as the ...
0
votes
1answer
26 views

Can't display shortcode in WP_Query loop

I want to display all posts from my CPT brand. My WP_Query loop works well but the shortcode I want to use within it doesn't work. This shortcode comes with some plugin called Download Attachments, ...
0
votes
1answer
34 views

Custom Taxonomy Navigation, with current menu items for children?

Is it possible to have a custom taxonomy navigation, with added active/current-menu classes if the post your on is within that category/custom tax? e.g you have a custom taxonomy called... Weather. ...
0
votes
2answers
24 views

Dump custom post type database

I have a custom post type filled with 7k entries by mistake. I want to empty the database for that custom post type. What is the best way to do it?
0
votes
2answers
404 views

Make custom post type column sortable

My site has two custom types: Auction and Lot. Lots are connected to an Auction via the post_parent field. I added an Auction column to the Lots list in the admin area. function ...
0
votes
2answers
689 views

Saving Custom Post types and fields to a custom table

I have a project in which I am trying to import a large amount of data into a WordPress installation and from that data, create pages on my site (as a custom post type). Since these pages will be ...
1
vote
2answers
1k views

Update content of multiple pages/posts at once?

Is this possible? using shortcodes? Custom post type? Custom Fields? CSV upload? Unique content per page. Do not need to create new pages, Just update body of them. Seems like a tough one? Also can ...
0
votes
0answers
21 views

connecting two post types or functions

Alright, so I have started asking related questions to this bout 4 times now trying to figure out what exactly I need to ask without making it too complicated. So I've got two examples of this that ...
0
votes
2answers
30 views

CPT archive as home page

I am very new to WP coding. I am working for a University where each faculty has been allocated a CPT. We would like it so that the CPT archive looks the same as the main site. I have created the ...
5
votes
3answers
2k views

How to use a custom post type archive as front page?

I'd like to use a custom post type archive as a site's front page, so that http://the_site.com/ is a custom post type archive displayed according to my archive-{post-type}.php file. Ideally I ...
0
votes
1answer
16 views

Rewrite slug of custom post type to include post-id

My current permalink setting is /%postname%/%post_id%/. Would like to use the same with CPT. Currently the URL looks as site.com/questions/title/ Would like to get post id at the end of the url on ...
4
votes
3answers
610 views

Hierachical Custom post types permalinks not working

Been looking for someone with this same problem for hours now so I decided to post my own thread. I have a hierachical custom post type called contact-information. Using this I have parentpages ...
1
vote
2answers
565 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
2answers
904 views

Display featured posts for a custom post type by taxonomy

Ok, the quick explanation: I'm using a custom post type, 'lakes'. And, using custom taxonomies to organize them. They are: state, watertype and county. I've created a 'page' for each state that ...
0
votes
1answer
61 views

Custom post types category

I have created a theme with a custom post type called 'project' and there is a problem. I want to show 5 different custom post type categories on a page in different portions, like posts to show on ...
4
votes
3answers
544 views

List most recent image uploads, but only for specific custom post type

I can get a list of the most recent image attachments like so: $attachments = get_posts( array( 'post_type' => 'attachment', 'posts_per_page' => $number, 'post_mime_type' => ...
1
vote
1answer
603 views

Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?

I have a custom post type with a custom taxonomy (to show some "best practice" examples on my website). On the single-post-page (single-bestpractice.php) I wanted to show all the terms (categories) ...
0
votes
1answer
1k 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: ...
3
votes
2answers
73 views

Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?

I am building a theme in which I have a post type, which will have an archive in a grid layout. You're probably thinking, "Just use the CPT archive!" Well, there are some cons to that method that I'd ...
4
votes
1answer
499 views

WP_Query ignores post_type in category view

I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the ...
3
votes
1answer
289 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 ...
5
votes
3answers
1k views

Custom Post Type and Taxonomy URL rewrite

I'm creating custom theme for my personal website using Wordpress 3.5.1. I have problem with the WordPress custom post type and taxonomy, here's the detail: custom post type name: articles taxonomy ...
0
votes
1answer
30 views

Custom post type permalink uses archive page to display posts

I can't figure out why my custom post type page template uses the archive page to display posts. I'm pretty sure I have the right files. These are the important files, regarding this issue, in my root ...
2
votes
1answer
37 views

Custom post type with specific category structure

I have successfully created a custom post type (aka "Instruction") and two different categories (aka "Program" and "Exercise"). An "Instruction" needs to be filed under an "Exercise" and an Exercise ...
0
votes
3answers
44 views

Creating themes using the one Plugin (Toolkit)

I'll try my best to explain what I'm trying to achieve. I haven't been developing with Wordpress for a while and I've hit a bit of a wall. I'm looking to get into making Premium Wordpress Themes. ...
0
votes
0answers
19 views

How do I create a system to track logged in users' views each time an individual CPT post is viewed?

I have a custom post type created in a plugin I'm working on, using Piklist (as I have a lot of other things I can use it for in this project, in general). So my first step would be to create a table ...
3
votes
2answers
35 views

How do I Make a custom post type get a custom post template in a plugin

I am writing a plugin in which I am adding a custom post type(called 'events') using register_post_type. Additionally I want it to use single-event.php instead of the regular single.php. The current ...
0
votes
1answer
287 views

Create action running on trashed_post hook to modify post_meta value

I have a custom post type that always do math operation to its post_meta and other custom post type post_meta. For example: post-type 1 = cpt_product_order post-type 1 post_meta = ...
0
votes
1answer
300 views

Cannot Save MetaBox Data in Custom Post Type

I've been working on this issue for quite a while and am truly stumped. Below is all of the code for my custom post type: /* Services Post Type */ function services_post_type() { $labels = array( ...
1
vote
2answers
32 views

How does register_post_type know how and which function to use from the add_action function?

This is from the WordPress site, and I can't find my answer in the documentation. When I issue the register_post_type, how does it know which function to use? I know the init action was populated ...
1
vote
2answers
274 views

Pagination for single custom post type page, using Posts 2 Posts plugin [closed]

Is it possible to add pagination to the single.php for a Custom Post Type, such as single-items.php. On this single page, I am using the Posts 2 Posts plugin ...
-2
votes
0answers
10 views

How to add a user dashboard page?

I'm developing a Wordpress theme for the first time and I don't know how to create a custom user dashboard page, such that when a user logs in via a custom login form, he/she is not directed to ...