There is a lot of confusion that people have on how blogs work. It can be quite confusing to those that are new or have only used static html pages.

Now this does not apply to just a WordPress blog but to any site that is using dynamic content.

When you look at the source code of a page that is in a browser you are seeing the compilation of a lot of pieces not the actual code that is on your web server.

The vast majority of your actual content and settings are in the My SQL Database and do not actually reside on the files that you have uploaded to your server.

Here is an example. When you load the index page of your blog your theme is going to pull in a variety of pieces like the header, the content, the sidebar and the footer to name just a few. See the image below.

index-edit 001

Look at that in relation to what you see when you do a view source in your browser which shows just the actual html that is being displayed on the page.

sourcecode

Now that big piece of the source code above here is not all of the html pulled from just the very first line of what resides on the server that is being called when you go to your home page.

For curiosity purposes I copied the source code to an editor and that one single line on the index.php page generates 147 lines of html code from what it is pulling from server files and data base table settings on this blog.

As you can see the vast majority of what ends up being displayed to a visitor resides in the data base not on the server code.

This means that when you add a post, edit settings and things like this you are not changing the actual code on the pages that are on the server but these settings are being saved and called from the database.

So understanding that the what you are changing in the dashboard is being changed in the database. When you change the settings in theme options (if your theme has them) or in the plugin settings those are all made in the database.

Hope this helps you to understand how your blog actually works and as always your questions and comments are welcomed.

About the author

Mike Paetzold got started blogging in 2003 and has become an expert on using WordPress. He has become known as The WordPress Guy.

After being an under ground niche marketer using his blogs he has surfaced to share some of the ways he uses blogs to enter various niches profitably.

Get the details at Profitable Blog Steps


Technorati Tags: MySql database, plugin settings, source code, theme settings, wordpress

Related posts

Like this post? Subscribe to my RSS feed and get loads more!

Disclaimer: Some of the links mentioned within this post or posts it may lead to are my affiliate links and in such case I will get compensated for recommending those products. However, I will never recommend something that I don’t personally believe in and I welcome your questions and feedback.