Home › Forums › Front-end Issues › How do you create post_title from another field(s) in ACF Pro? › Reply To: How do you create post_title from another field(s) in ACF Pro?
Thank you for your answer – it gave me some ideas :). Yes, rather “or similar”… As I understand it by using pre_save_post you effectively declare post type before saving anything(in hooked function), so I can’t get_post_type before I have any kind of post and that’s because I have both of my end-froms on pages with custom templates, but I can use is_page to know from which of these pages I get my data. But there is another but – I have WPML installed and more than four languages on my website so solution above will bring me to suicidal thoughts. I was hoping to do this using new_post in acf_form(), but there is this problem with post_title. Back to square one.
Sorry for my bad english.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.