Home › Forums › General Issues › Custom Post Type as WordPress Front/Home › Reply To: Custom Post Type as WordPress Front/Home
You could create an options page, or add a field to an options page, that lets the admin choose a post from your custom post type and then use the examples in from the links. Instead of setting a specific page as in the code you would get the value from your custom option field and use that value to set the post. The to eliminate confusion you could add some custom CSS to the regular admin page to hide the standard WP selection. Like I said, I dug around in WP code for a while and there’s no way that I can find that will allow you to alter that drop down.
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!
π» The next ACF Chat Fridays features a live demo of one of our most highly-requested features: registering CPTs and custom taxonomies directly in ACF. Donβt miss it!
— Advanced Custom Fields (@wp_acf) February 27, 2023
π Friday 3rd March 3pm UTC
π Register here - https://t.co/3UtvQbDwNm pic.twitter.com/j4r4ouQtz9
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.