Home › Forums › General Issues › Preview solution ! › Reply To: Preview solution !
I can’t edit my initial post so, there is the update 😉
UPDATE MAY 2018
Like @wiredimpact said, this workaround is not needed anymore.
But you still can experience problems with Customs Fields and Preview in WordPress.
Guess what? 99% of the time the problem came from that WP Revisions are disabled!
The solution? Make sure that WP Revisions are enabled.
Go to your wp-config.php and before this lines
/** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');
Insert this code “define( ‘WP_POST_REVISIONS’, 3 );” like this
define( 'WP_POST_REVISIONS', 3 ); // Enabled 3 revisions, you need at least 1 for Customs Fields Preview /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');
Also WP Engine disable WP Revisions by default, ask the support to enable them back for your website 😉
Hope this helps 😉
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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.