• Hello – I’ve found out how to create the base defintion for a custom post type(calls in functions.php), but I have no clue how go about defining any additional fields of these posts. Any suggestions where to start? I’ve been searching for 30 mins in the codex, online I can’t find anything. I want to do this by hand and not use a plugin if possible.

    Thanks!
    Rich

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter 8900200

    (@8900200-1)

    Thanks. What I really need is info on custom posts, not taxonomies. The way I understand custom taxonomies is that they meta data for the whole post. I thought the purpose of a custom post type was that it would say 5 fields all editable and all selectable for placement on a page individually. I’m trying to setup those extra fields on a newly created post type.

    I think you’re confusing custom posts (which are custom taxonomies) and custom meta fields.

    See Using_Custom_Fields.

    Thread Starter 8900200

    (@8900200-1)

    I’m sure you are right. It doesn’t help that these terms are bounced around to freely. ??

    So, in this example: https://kovshenin.com/archives/custom-post-types-in-wordpress-3-0/

    He talks about these larger container type entities that appear higher up in the nav bar and that I call custom post types. I setup his podcast example, and I can see that when I have a few test podcast entries I can see the multiple column view (with the columns specified in my function call). What I can’t figure out is how to edit these columns. E.g. status, or for sale, or length. There has to be a way to expose these fields(meta tags maybe) but the edit screen for the Podcast simply has one big text field. That’s in.

    Any ideas? Thanks for your feedback on this.

    Rich

    Thread Starter 8900200

    (@8900200-1)

    Well, after looking and looking I still can’t find an examples of how to do this. I still need to be able to add customized meta fields that are user friendly. By that I mean they have plain language Labels that are static (not simple custom fields that are open ended) and input fields that are constrained like those in this example:

    https://blog.genuineinteractive.com/post/adding-custom-field-gui-to-custom-post-types-wordpress-3.aspx

    This example does not work, but it shows what I am talking about.

    Why in the world is this so difficult?? Also, I am very curious what the usefulness of having a custom post type with custom fields that are only fillable through code?? That’s what most people are talking about out there. Sure, if we have a very basic task that we manage all through code, but what about a custom post type that we want to the User to enter data for? Doesn’t it seem obvious that we want them to have a guided, controlled input form? Sure does to me.

    This is why your suggestions of the Using Custom Fields does me no good.

    Anyone else out there who knows about this?

    Thanks
    Rich

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom posts with more than one field?’ is closed to new replies.