As we come up on the end of this series, we have two more topics to cover:Saving information to and retrieving information from the databaseRefactoring the code so that it becomes more maintainable for usIn the previous article, we looked at validation, sanitization, and implementing this functionality for the elements that we’ve displayed on the front-end. In this article, we’re going to continue the process by saving the information to the database, retrieving the information, and displaying it on the front-end.Along the way, we’ll also look at some of the built-in WordPress API functions designed to help make this a bit easier for us as well as some tips for double-checking our work in the database to verify our information is being saved exactly as we expect.We’ve got just a bit more to go in order to bring this plugin to life, so let’s get started.Saving DataIn order to display data on the front-end, we obviously need to get it into the database first.
More here:
Creating Maintainable WordPress Meta Boxes: Save and Retrieve