Home › Forums › General Issues › Set post publish date by custom field? › Reply To: Set post publish date by custom field?
Just adding onto here since this is the code I use on my website;
Is it possible to address this code to multiple custom posts types?
E.g. I have custom post types called ‘tv’ and ‘radio’, but I think it wouldn’t be wise to repeat the entire code in the functions.php.
Sorry if the question seems dumb but I know next to nothing about php.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.