I’m trying to get my WordPress skills up lately, after doing some research I found multiple tools to work with, including things as ACF and Timber. I’m currently trying to develop a website using WordPress and am having a problem.
I made a custom post type by adding a function in functions.php, this post type does not have a title nor content. I did add the following fields to this post type it: a brand, a name, a postal code, an address and an image field. Adding a post of this type works completely fine, though, it’s title is ‘Auto Draft’.
I would like the title to be a concatenation of the brand and the name field, instead of ‘Auto Draft’. Is there a way to accomplish this and if there is: is this considered good practise? For example: would simply keeping the standard title field be a better option?
I was thinking if you wanted to have a unique titles for each post, I’ve done this when creating something similar to make sure the client can’t add two posts with the same brand + name. If you don’t need that you can just ignore that part of my comment.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users