Open matgargano opened 2 months ago
Hello,
I faced that problem long time ago because I was not using WP CLI when migrating the database :
wp search-replace http://localhost:3322 http://www.exemple.com --all-tables
You should also run those command after :
# Fix the action scheduler that may fail after the migration
wp action-scheduler fix-schema
# Flush the cache, just in case
wp cache flush
It most likely will solve yours too as this library doesn't interact with the data it just declare fields in PHP in a more convenient way.
Environment:
Description: After creating repeater fields locally and pushing the entire database to a staging environment, the fields appear empty on the frontend. However, these fields are visible and populated in the backend. Manually rearranging a repeater field and saving causes the values to display correctly on the frontend. Code example below.
Steps to Reproduce:
Expected Behavior: Repeater fields should retain and display their values on the frontend after the database is pushed to staging without requiring any modifications.
Actual Behavior: Repeater fields are initially empty on the frontend after pushing the database to staging and require a backend modification to display correctly.
Additional Information:
in
functions.php