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

learn more… | top users | synonyms (1)

1
vote
1answer
569 views

Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it

I'm trying to output a custom post type archive using a shortcode. Everything works fine except for the get_next_posts_link part. The weird part is that it's right next to a get_previous_posts_link ...
0
votes
1answer
509 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
11 views

get_page_by_path(), get_the_title() is creating Auto Draft status for site

Similar to this solution: how to get page id of a page using page slug I have the following function that works. function show_specific_post($path) { $spec_post = get_page_by_path($path); $ID ...
1
vote
1answer
409 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 ...
0
votes
2answers
784 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 ...
8
votes
1answer
4k views

Redeclare/Change Slug of a Plugin's Custom Post Type

Is it possible to redeclare/change the slug of a plugin's existing custom post type (without simply editing the plugin)? That is, if Plugin X creates a custom post type with the slug /uncookedtoast/, ...
0
votes
0answers
7 views

Custom taxonomy archive is visible to only subscibed users

I have a custom taxonomy (lesson) that helps divide posts and other custom post types between different views over the data. Now I have the custom taxonomy page expanded and visible. ...
0
votes
1answer
12 views

If is custom post type archive page

If I need to check custom post post type is movie, I can use following code. if ( 'movie' == get_post_type() ) I need to check, if it is custom post post type Archives Page? ( www.domain.com/movie) ...
2
votes
2answers
731 views

Correctly delete posts with meta and attachments [duplicate]

I am having an overview of custom post types. These have custom tax and also an attachment. In my overview I need to provide links to delete the entries. With that I also need to delete the ...
0
votes
0answers
16 views

Events with multiple event dates + permalink for each date

Hope you're well. I was wondering how to achieve something like this in wp: Bascally it's a list of events ordered by the event date. I know how to do that. But the tricky part is that an event may ...
0
votes
0answers
16 views

Single page of CPT

I'm trying to create a single page of a CPT. My cpt: <?php // CONVENZIONI CPT + TAXONOMY function cpt_convenzioni() { $labels = array( 'name' => _x( 'Convenzioni', ...
2
votes
1answer
262 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
2answers
252 views

Metabox does not show in custom post type

I am trying to create a metabox input field in a custom post type and it does not work even if I followed the instructions the best I could. I am not a PHP dev so I guess it could be just a small ...
-1
votes
1answer
31 views

Added custom post-type to Cherry child theme but it is listed as “Posts”

I am working with a purchased Cherry child theme and found where they added custom post types in the theme-init.php file. The theme came with a number of custom post types already created, so I ...
3
votes
2answers
552 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
0
votes
2answers
23 views

Custom Post Type Permalink Page Not Found

I've been wasting hours and hours trying to solve a permalink issue with custom post types. It keeps returning page not found (404). When I use the default permalinks, it works, but when I switch to ...
2
votes
1answer
358 views

Programmatically adding posts

I'm about to create parser which would be inserting new custom posts. So, it's pretty simple global $user_ID; $new_post = array( 'post_title' => 'My New Post', 'post_content' => 'Lorem ...
0
votes
1answer
322 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
20 views

post_type_exists keeps returning false

I have a little helper class for registering new custom post types. However, it seems it is registering the custom post type on each page load. I put in a small check for this: if( ! ...
0
votes
1answer
440 views

WordPress import not importing custom taxonomy

I've posted this already in the WP Support Forum hoping to have more luck here. I'm trying to import a custom post type from one blog to another. (126 posts in the custom post type). I've exported ...
0
votes
0answers
38 views

Custom Post Type URL

I have big problems get the result with my custom post type and taxonomy I have made. I have read a lot in the questions and tried also many, but don't know where to find the solution or where to ...
0
votes
4answers
578 views

Remove custom metaboxes from custom post type

Is there a away to create a custom post type in wordpress that will only include the default metaboxes and not any other metabox that was added by other plugins. The idea is to use the custom post ...
0
votes
1answer
255 views

Query in a Hierarchical Custom Post Type for Children vs Siblings

I have a custom post type with two levels of pages inside of it. the parent level we'll call parent, and child - child. The parents need to be able to pull in their children, and the children need ...
2
votes
1answer
81 views

Custom query - alternate posts by category

I have a custom post type called "services" with a custom taxonomy called "location". Each post is categorized as either "Location A" or "Location B". I need to query all posts from the "services" ...
1
vote
3answers
261 views

Problem excluding category from get_next_post

I have a custom post type called "exhibitions" that uses the native "category" taxonomy. I have three categories: Current, Past, and Featured. Posts get marked either Current or Past and some are also ...
0
votes
1answer
14 views

Custom taxonomy (categories) on custom post type return no results

Hi everybody and thanks in advance for helping. I am experiencing a problem with the categories I have created for my custom post type: when I click on the URL of the category (every category) I get ...
0
votes
1answer
293 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
9 views

I need to change my wordpress permalink structure to mysite.com/taxonomy/post_type/post_title

I have three post types like post_type1, post_type2, post_type3, which are having same taxonomy "region" now i need my permalink structure like mysite.com/region_name ...
1
vote
0answers
9 views

Add custom post type drafts to RSS feed

I have an RSS feed setup for my custom post types, but I'm trying to add in all posts with the status 'draft'. Here's what I've tried that doesn't seem to be working at the moment : function ...
0
votes
1answer
23 views

How can I remove the “Add New” button in my custom post type?

I have many custom post types that need the Add [custom post type] feature but I have a custom post type of "About" and I do not need to "Add New" about to the about custom post type. So I want to ...
71
votes
12answers
43k views

Adding a Taxonomy Filter to Admin List for a Custom Post Type?

I have created a Custom Post Type called 'listing' and added a Custom Taxonomy called 'businesses'. I would like to add a dropdown list of Businesses to the admin list for the Listings. Here is what ...
-1
votes
1answer
25 views

Custom Post Type Loop inside Array

I current have a custom post type loop: $args = array( 'post_type' => 'locations', 'posts_per_page' => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : ...
0
votes
1answer
1k views

Use WordPresss menus with anchors

I have a CPT archive page and I want to create a navigation menu which will jump to anchors in the form <a name="post-slug" http="{the permalink goes here}>The CPT Title</a> I have been ...
0
votes
1answer
319 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
13 views

How to query all custom posts of a certain type and checking what category they have

Here's what I have: Custom Post type: Vendors Vendor categories: Wedding Party Catering I want to query all Vendors and then assign them a class based on the category they are in. The class ...
0
votes
1answer
337 views

Create template for taxonomy results limited by Custom Post Type

I've got a Custom Post Type with a Custom Taxonomy set up. So how do I create an archive template to display posts from that CPT, limited by taxonomy? Here's the deal: The CPT is called Shows. Each ...
1
vote
1answer
302 views

How can you group custom post types in the admin sidebar?

Is there an easy way to group custom post types on the admin sidebar menu? The reason i ask is because i want to try to accomplish the following: I've created a custom post type titled "Latest News" ...
0
votes
1answer
33 views

How to filter post data with AJAX on page?

I have build a custom post_type with "Work items" in order to enter my personal portfolio items. The "Work items" have taxonomies like "Graphics", "Websites" etc. I am able to display them all in an ...
0
votes
0answers
12 views

custom post types menu

I am wanting to create an accordion menu of states and cities that are defined in a custom post type. The cities are defined in a custom field of the post type and the states can also be a custom ...
0
votes
0answers
19 views

How to avoid hardcoded text in a custom page template?

I'm developing a company Website using Wordpress 4. This website needs some special, customized pages - with forms and GET and POST and a lot of stuff, so a lot of PHP code. Now, a CMS' main purpose ...
0
votes
1answer
273 views

Display posts order by custom post in a dropdown menu

In my WordPress backend I have some custom posts and, in one of them, I want to display in a dropdown field some posts related with but ordered by post type. Iwant to display something like this. ...
0
votes
0answers
6 views

How to change post status link order(priority) on cpt listing page

On a custom post type listing page the registered post statuses are listed as links above the post lists. I've a situation where custom registered post types are showing after 'trash' and I still want ...
0
votes
2answers
532 views

How to enable parent-child relationships and post attribute admin widget for posts

I want to be able to select a parent post when i create a new post. I assume it should be easy just to make the 'page attributes' admin widget to work similarly for posts too. The use case is for ...
0
votes
1answer
557 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
0answers
11 views

Native Category taxonomy used with multiple post types show wrong numbers of posts attached to it

I have two custom post types i.e. Deals and Articles and both have native category attached to them. I then created multiple Deals and attached different categories to it. It all worked fine and ...
0
votes
0answers
8 views

How to add a new menu item in “Twenty fourteen” theme?

I've created two menus inside of my theme's functions.php file: register_nav_menus( array( 'primary' => __( 'Top primary menu', 'twentyfourteen' ), 'secondary' => __( 'Secondary menu in ...
0
votes
1answer
28 views

How do I show my <p> containing my custom field ONLY if there is a set value on that custom field?

I am using the Custom Fields Plugin and have 2 custom fields assigned to my "products" custom post type. Field 1. Price Field 2 Discount Price So this is my code: <div class="wrapper"> ...
0
votes
2answers
304 views

Adding Help Tabs To Custom Post Types

Using this well written post - tutorial Edit dashboard's help tab I have full control over all standard WordPress admin screens. Can this be modified to add "Help" Tabs to custom post types?
1
vote
2answers
2k views

Importing posts from XML into custom post type

I need to be able to create posts in a custom post type with custom taxonomies from an XML file. It is from a job feed so when a job is added I need to be able to import it into wordpress. Do I just ...
0
votes
0answers
24 views

WP_Query by a category id and a custom post_type

I need to query all posts that belong to a given category (default, not custom) and a custom post type. As simple as that. The fact that it doesn't work, to me, is ridiculous. Unless I'm missing ...