Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

I want to make a custom post type,

I want to make a custom post type, with all features fields taxonomies i have in the already default post type,

I tried ACF and Custom Post Type UI but they just made the type in editor i don't have the fields i want. theme is grifus by the way. i know the single.php is my file .but don't know how i can make it work.anyone would like to help any help is great for me.

Josh Miclette
Josh Miclette
Courses Plus Student 6,227 Points

Hi Shehzad, If I am understanding your question correctly, once you create a custom post type, you're not seeing the fields in the editor? If that is true, go back and edit the custom post type in CPT UI and select the one you want to edit. Scroll to the bottom where it says, "Supports" on the bottom right. Check off the fields/options you wish to show in the editor. I could be completely misunderstanding your question, but I hope this provides some direction.

Josh

4 Answers

Thanks for the quick reply. let me clarify my question with these shots. When default post has it all these https://1.bp.blogspot.com/-iwK_52TrZ6Q/VifFCeSPwLI/AAAAAAAAGoM/ikSbQmBQifI/s1600/1.PNG

but in the custom post the highlighted item are missing. https://4.bp.blogspot.com/-iju2kBppQpw/VifFCcAchtI/AAAAAAAAGoI/XXUxg7wejgc/s1600/2.PNG

hope it helped.to clear it.

Josh Miclette
Josh Miclette
Courses Plus Student 6,227 Points

In your Custom Fields area, do you have Post Type > is equal to > "you custom post type" ?

sorry,,,Yes it is

Josh Miclette
Josh Miclette
Courses Plus Student 6,227 Points

I played around with my custom posts to see if can mimic what you're seeing. Here is what I did:

First - do you have a CPT Menu item in your admin area? If so...

  1. I Created a Custom Field, added the basic needed info, and saved it.
  2. I went into my CPT menu and clicked "Add New"
  3. When I was editing the page, I pulled down screen options and checked off my custom field.

Other than that, I am out of ideas unless you can send some more screen shots. I hope this helps.

Ok ,I did exactly same every time and got everything you got.It's Clear .You are Right.

My problem is as i stated in the first post of this discussion that i am using grifus theme which is a movie them.it imports data from imdb. a few fields are in default in post editor of this theme.as showed in this shot.

https://1.bp.blogspot.com/-iwK_52TrZ6Q/VifFCeSPwLI/AAAAAAAAGoM/ikSbQmBQifI/s1600/1.PNG&#13

to make it easy to understand it lets call the default post editor 'Movies' Now I am trying to make a custom post type and want everything the 'Movies' have....i mean the fields .as above screenshot.

However here are the details shots what fields i want in my custom post type...just like I have in Movies... https://3.bp.blogspot.com/-VkWy0A6i1t0/VifcfEQdm3I/AAAAAAAAGog/tOnBOSww6Q0/s1600/33.PNG

Field 1 Image and trailers https://2.bp.blogspot.com/-l60khZq0klA/VifcfR27e1I/AAAAAAAAGok/dAoLeLPEBmA/s1600/44.PNG

Filed 2 https://4.bp.blogspot.com/-i7ukqgYldkA/VifcfYs7VVI/AAAAAAAAGoo/Xk9hzNSr3xk/s1600/55.PNG

3. https://3.bp.blogspot.com/-Nud-e-4F5R8/VifcgHZqA3I/AAAAAAAAGos/URo_4Sdylms/s1600/66.PNG

4.IMDB https://1.bp.blogspot.com/-bCmRTOrsOCQ/VifcgbkwITI/AAAAAAAAGo0/nGc07dXYX9Q/s1600/77.PNG

Hope it helped you to understand how you can help me.

Josh Miclette
Josh Miclette
Courses Plus Student 6,227 Points

That helps explains your question, and I think without seeing how the template functions from the admin panel, I am out of options.

However, in my experience with WP templates, I found that reaching out to their support team may be the best way to get your question answered - since they built the theme. And if you paid for it, you should get full support from the company. I hope this helps.

Thanks for the Help.I Really Appreciate it.

ok.can you just help me to do it manually.I mean forget about this theme. any other theme if you want to do do it without plugin.Acf or any other.

Josh Miclette
Josh Miclette
Courses Plus Student 6,227 Points

Without the ACF plugin, the only way I see adding options to the editor page is through the screen options. Maybe someone with a little more background in WP will chime in. Until then, I suggest reading through the codex page. I hope this helps.