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

learn more… | top users | synonyms (1)

0
votes
1answer
9 views

Issue on Counting CPT's Under Taxonomy Term

I am using this code to count number of Custom Post Type $tax_terms = get_terms($tax, $args); foreach ($tax_terms as $tax_term) { echo '<li>' . '<a href="' . ...
2
votes
1answer
677 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
12 views

Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update

am using this code to create a Metabox for CPT. Now I am able to view the updateded / saved Text input on post but the Checkbox and selected options return null after save or update. Can you please ...
0
votes
1answer
246 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: ...
-1
votes
0answers
12 views

create order list post type with select option on page layout

i early for wordpress codex. i get some case about how to change order list custom post type by guest, so I have a custom post type of property, I created a template page. The file ...
0
votes
1answer
334 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 ...
0
votes
0answers
7 views

Icon 32 for Posts Product Index Page

Can you please let me know that if WordPress yet supporting Icon 32x32 in index page for Custom Post type? I am able to add icon 16x16 for CPT Menu but cant's find any option to add Icon into index ...
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: ...
1
vote
1answer
23 views

Adding menu_order to CPT admin page

I have a custom post type (cpt_roundtable), and am trying to add a column to the admin page showing the menu_order for each entry. This is in my functions.php file. function ...
0
votes
1answer
22 views

Getting the IDs of a custom post type

I have made a custom post 'case studies' which has a number of posts. I wish to get the IDs of each of these posts to manipulate the data, but despite looking at similar threads, I cannot piece ...
0
votes
2answers
29 views

Only One Post of Custom Post Type Appearing on Template Page

I'm not sure if it's a database or template issue, but on this template page only one post of my Custom Post Types are appearing. There should be at least two. The page uses an isotope.js script, but ...
3
votes
2answers
536 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
244 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 ...
0
votes
1answer
20 views

List all posts from custom post type by taxonomy

Having custom post types with taxonomies. Lets say I have a custom post type "Products" with taxonomies "new", "old", "fashion". Now I have a Nav where I can click on ...
0
votes
2answers
392 views

Get custom post type image URL

How do I retrieve a custom post type image URL? All I accomplish is to get the widht and height of the image but not the actually URL. My code looks like this and are run in the functions.php of my ...
1
vote
2answers
1k views

Include taxonomy slug in url?

I have the following custom post-type and custom taxonomy setup: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'system', array( ...
0
votes
1answer
132 views

How can Custom Post Type and a page have the same slug?

I have a page called "Art" that can be viewed at /art. I also have a custom post type called "samples" with a post called "Art" inside of it. It SHOULD be viewed at /samples/art. For some reason, ...
2
votes
1answer
353 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
16 views

How to define which register_post_status goes to which register_post_type?

New to registering post types but looking at samples, and the codex not helpful here. I am not understanding how the two of these relate? This is just bare bones so someone can explain (the parameter ...
-1
votes
1answer
29 views

Create page using same slug as custom post type

I am working on a site for a client who has custom post type called "practitioners" and several posts within this displaying info related to different practitioners. I want to create a page with a ...
0
votes
2answers
286 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?
0
votes
1answer
20 views

Nav style for current page with custom post type

I'm trying to style the navigation of a WordPress site using the following CSS to highlight the current page or parent page. I'm using a custom post type to display projects. .current-menu-item > ...
0
votes
1answer
310 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
21 views

Custom Loop for Custom Post Type

I'm using WP 4.0 and Headway as my theme. I've created a custom post type called 'property' and am looking to create the loop in 2 columns. but I'm not sure what to add to the following code to make ...
0
votes
1answer
332 views

If tag exists, then echo once

I have the following code and I'm trying to check to see if a specific tag exists, and if so, I need to echo it once. The problem is when the tag exists in multiple places, it echos multiple times. ...
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
298 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
18 views

Different categories for custom post type

I use this code to create a new custom post type, but the problem is that it shows the same categories of default posts. Is it possible have different categories for this custom post type? function ...
0
votes
0answers
22 views

sharing slug between taxonomy and custom post

I am having trouble getting the relationship between a custom post and assigned taxonomy to work. The custom posts are clinics, the taxonomy is the location of each clinic: ...
0
votes
4answers
486 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
0answers
94 views

Problem with Bootstrap Carousel integration

I want to show 4 items in one slide of slider. It is working, but I think I have done a lot of hard coding. Can anyone give me a better solution? Here is my code: <div ...
0
votes
1answer
845 views

Let users upload image(s) to the post from front end

I want to enable logged in users (Wordpress) to submit posts from front end (among with other data). My form is working great, I add custom post meta data which I later display on custom post page. ...
0
votes
1answer
732 views

Displaying Portfolio Filter by Category Order (alphabetically)

I have created a custom post type to display churches in Europe. I used a tutorial to make it filterable and everything on my site works as normal. How would I organize the posts by country, instead ...
0
votes
1answer
19 views

Custom Taxonomies not appearing in Admin

I've made a plugin of a custom content type and taxonomy. The CPT is showing fine, but the Taxonomies are not. There's a lot of code, but the taxonomy information is parsed below: Full code can be ...
0
votes
1answer
40 views

CPT Repeatable Fields + Undefined Index

I'm using this code here for repeating fields in a CPT (yes, I know of ACF and a few others), and have tried to add a third field. The field is currently displaying in the meta box, and is output on ...
0
votes
0answers
21 views

Custom Post Type rewrite permalink

I am trying to rewrite permalinks for my custom post type. The structure I look is: /%custom_post_type%/%custom_taxonomy%/%date%/%postname% Any ideas how can I achieve that?
0
votes
0answers
8 views

Custom post type pagination [duplicate]

I'm trying to get pagination for a custom post type. I don't know what's wrong with the code but it doesn't work. This is what I have done so far: <?php $query = new WP_Query( ...
0
votes
2answers
47 views

Permalinks when using Custom Post Type with static page for archive

I have created a custom post type called "portfolio" and I use a static page to list my portfolio posts because I need to add content using the content editor. My problem is that I would like this ...
1
vote
1answer
459 views

Allow non-logged in users to see a future post after clicking on a list of future posts

I have been able to list out pages that are set for future in a custom template like this: ...
-1
votes
0answers
17 views

UnderscoreS_ Startup Frame not showing Page Attributes > Parent Template dropdown [closed]

S_ Startup Frame not showing Page Attributes > Parent Template drop down menu on Regular pages or Custom Post type. I've included the following line to my functions.php add_post_type_support('page', ...
0
votes
3answers
28 views

Display different information of a custom post type

I'm developing a real estate site for a client and I'm struggling a bit with it. I created a custom post type called "Property". A property can be on sale and/or on rent. Two different menu items in ...
13
votes
6answers
7k views

Is there a way to get N number of WYSIWYG editors in a custom post type?

Is there way to have multiple WYSIWYG editors for a custom post type? For example, if I had a 2 column layout I wanted to have one editor for one column and another editor for the other.
3
votes
1answer
183 views

Templates for Custom Post Types and Custom Taxonomies

I am working on a custom theme for a network of sites that are deployed under a WordPress MultiSite installation. Within these theme I create 4 custom post types that have two taxonomies added to all ...
0
votes
1answer
521 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 ...
-1
votes
0answers
19 views

How do I implement my search form into a functioning Wordpress search form? [duplicate]

Here's the code for my search form: <form role="form"> <div class="form-group"> <select class="form-control custform"> ...
0
votes
1answer
39 views

Creating a search form for custom fields

I have built a theme for a car dealership. Each car is a custom post type ("vehicle"), and has about 12 custom fields with things such as Make, Model, Mileage, Fuel Type etc. etc. So basically on the ...
-3
votes
0answers
11 views

I need the same search function as this WP theme [duplicate]

http://demo.themefuse.com/?theme=autotrader&device=desktop The search function (especially when you click Advanced Search) is pretty much exactly what I'm trying to achieve - but don't know where ...
2
votes
1answer
1k 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 ...
0
votes
2answers
489 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
0answers
33 views

Bootstrap Carousel problems

I am attempting to use Bootstrap Carousel in my WordPress posts. I created a custom post type called "images" and made sure it's visible in posts, which is where I want to use the carousel. I uploaded ...