Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDanny Maitland
Courses Plus Student 217 PointsHow does WordPress save website changes?
I have been wandering on how WordPress and other CMS platforms save changes to a users website.
They have a lot of Data stored in SQL, is this how they save changes? When a user makes an edit to text or adds in a form how does PhP bring the changes into effect when people visit the website?
The only way I can think of it being done is each part of the website is saved into a Database and PhP pulls the information from the Database to echo it out on the site.
So there would be a table for the homepage, the about page, contact page etc. Image locations and names are saved into the DB and is echoed into the img src to be displayed. Each item such as Blog posts are saved into their own tables and a loop echos each post on the page.
Is this the way they go about it? This seems a little messy but I can't think of any other way they can do it.
This is a simple thought into a complex system that WordPress has built but I am just very curious on how they went about it.
Thank guys
1 Answer
Simon Duchaine
14,441 PointsHi Danny !
You've explained really well how WordPress is dealing with all the information that is passed in the admin panel.
Anything you do is saved in tables in the database and then it is echoed out into the frontend.
Danny Maitland
Courses Plus Student 217 PointsDanny Maitland
Courses Plus Student 217 PointsThank you Simon! I am very happy that I got it right.