My front-end forms render, submit and create new CPT’s just like I want them to. However, the newly created CPT does not have a title.
When I try to call the new created CPT from different CPT using the Post Object or Relationship fields, the CPTs are listed but only itemized as “untitled.”
I am using this code in my functions file to create the_title using get_the_author(). On the back-end this successfully displays the CPT title as the post author. But the “the_title” cannot be called from the front-end and shows only as “untitled” in Post Object / Relationship fields.
Haven’t tried this solution yet but wanted to let you know I received the info and after a quick look I think this will be the key. It looks right to me. Will give it a try later today to confirm. Thank you for your fast and clear response. Much appreciated.
Viewing 3 posts - 1 through 3 (of 3 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