Title on Custom post is a must?
Support › MB Custom Post Type › Title on Custom post is a must?Resolved
- This topic has 6 replies, 2 voices, and was last updated 5 years, 4 months ago by
Anh Tran.
-
AuthorPosts
-
December 27, 2019 at 11:03 PM #17652
Robert O. Aakerman
ParticipantI have created a Field Group "Insect" with + 10 custom fields
I have created a Custom Post Type "Insect"
I have connected Field Group to "Settings/Location/Post types" = "Insect"
I have unticked the Custom Post Type "Supports" (selection to the right) so it only supports "Revisions"I would like NOT to use post "Title"
Alternatively, I would like to use one of my custom fields as "Title" instead.Reason is I want users to register Insects (and since these do not have unique names like "John" or "Claire" it does not make sense to have a field called "Title") - Seems WP requires "Title" to be filled in.
Is there a solution/alternative?
Thnx!
December 29, 2019 at 8:18 PM #17669Anh Tran
KeymasterHi Robert,
There are 2 things here:
Post title support:
I've just checked and seen that you can disable all features, except revisions, and here is my screenshot:
Use a custom field for post title
See this tutorial. It uses a custom field for post content, you just need to replace post content with post title.
January 6, 2020 at 9:33 PM #17734Robert O. Aakerman
ParticipantLooks good "It uses a custom field for post content, you just need to replace post content with post title."
But since I have several Field Groups and this only applies to one of them, how do I filter that?
January 6, 2020 at 9:53 PM #17735Robert O. Aakerman
ParticipantAdditionally:
What is this and is this free to change? ...very confusing it is called "Title" too.
//Aakerman
January 6, 2020 at 10:07 PM #17736Robert O. Aakerman
ParticipantI also prefer to work in the Admin interface (the Builder) since I need to test and change fields often in the beginning.
I can dabble with PHP and think I've found answers..but it is a bit challenging to understand, where code should go, how to handle relationships, how to handle existing fields in WP and also making this into a decent UX.
January 6, 2020 at 11:16 PM #17737Robert O. Aakerman
ParticipantThe Wysiwyg solution above does not solve Frontend registration. Nor does it populate into Custom table.
Any ideas or hints?//Aakerman
January 7, 2020 at 3:12 PM #17752Anh Tran
KeymasterHi Robert,
But since I have several Field Groups and this only applies to one of them, how do I filter that?
You need to repeat the same hooks for other post fields. Note that: only for post fields (post title, post content, etc.), not all custom fields.
The Wysiwyg solution above does not solve Frontend registration. Nor does it populate into Custom table.
I'm not clear about this. It's about post content. What did you mean for frontend registration and custom table?
-
AuthorPosts
- You must be logged in to reply to this topic.