{"id":85179,"date":"2022-09-09T08:48:50","date_gmt":"2022-09-09T08:48:50","guid":{"rendered":"https:\/\/www.vwthemes.com\/?p=85179"},"modified":"2022-09-09T08:48:52","modified_gmt":"2022-09-09T08:48:52","slug":"where-does-wordpress-save-pages","status":"publish","type":"post","link":"https:\/\/preview.vwthemesdemo.com\/old_website\/where-does-wordpress-save-pages\/","title":{"rendered":"Where Does WordPress Save Pages (Everything You Need To Know)"},"content":{"rendered":"\n<p>Ever wondered where does WordPress save pages? Well, this is something non-intuitive especially if you are new to WordPress and don\u2019t know how it works. Do not worry as this article will help you know how WordPress stores and saves pages and displays them on your website. Also, have a look at <strong><a href=\"https:\/\/www.vwthemes.com\/popular-wordpress-themes\/\" target=\"_blank\" rel=\"noreferrer noopener\">Popular WordPress Themes<\/a><\/strong> by VWThemes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-know-how-wordpress-works\"><strong>Know How WordPress Works<\/strong><\/h2>\n\n\n\n<p>In Where Does WordPress Save Pages, The first thing you need to know is that WordPress is written in PHP and not HTML. so when you visit a WordPress site, it loads PHP scripts that query the database for the desired content and that content is used for building out an HTML page on the fly before that page is sent to your browser. This enables WordPress to compile dynamic content from multiple sources such as your header, your sidebar, your page content, your footer, etc into one cohesive page.<\/p>\n\n\n\n<p>That is exactly what happens when someone visits your WordPress website:<\/p>\n\n\n\n<p>&#8211; visitor\u2019s browser requests for a specific page<\/p>\n\n\n\n<p>&#8211; WP loads the needed PHP scripts beginning with index.php<\/p>\n\n\n\n<p>&#8211; WordPress then queries the database and it retrieves the data for the specific requested post or page<\/p>\n\n\n\n<p>&#8211; The page\/post data from your active plugins and themes is then compiled by WordPress and it generates an HTML webpage.<\/p>\n\n\n\n<p>&#8211; This HTML page is then sent to the visitor\u2019s browser.<\/p>\n\n\n\n<p>Every page on a WP site undergoes this and as it is generated dynamically, you won\u2019t find your HTML page content in your file system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Where Does WordPress Save Pages In The Database?<\/strong><\/h2>\n\n\n\n<p>The content of your posts and pages is stored in the wp_posts table of your database by WordPress. For viewing and modifying this data, you will need to use a tool such as phpMyAdmin. You can do this by logging into cPanel on most of the web hosts and locating the phpMyAdmin icon:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2022\/09\/image-22.png\" alt=\"\" class=\"wp-image-85180\" width=\"705\" height=\"146\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-22.png 940w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-22-64x13.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-22-300x62.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-22-768x159.png 768w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-22-190x39.png 190w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-22-436x90.png 436w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n<\/div>\n\n\n<p>Once you open phpMyAdmin, you will need to select the name of your database on the left sidebar:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2022\/09\/image-23.png\" alt=\"\" class=\"wp-image-85181\" width=\"470\" height=\"205\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-23.png 940w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-23-64x28.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-23-300x131.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-23-768x335.png 768w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-23-190x83.png 190w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-23-206x90.png 206w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/figure>\n<\/div>\n\n\n<p>In case you have installed WordPress using an auto-installer, it will possibly look like account_wp20. See that \u2018wp\u2019 for WordPress. Upon selecting the database, you will see a list of database tables:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2022\/09\/image-24.png\" alt=\"\" class=\"wp-image-85182\" width=\"705\" height=\"228\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-24.png 940w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-24-64x21.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-24-300x97.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-24-768x248.png 768w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-24-190x61.png 190w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-24-278x90.png 278w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n<\/div>\n\n\n<p>Click the one titled \u2018wp_posts\u2019.<\/p>\n\n\n\n<p>Then you will see a list of content items on your WordPress site including attachments to posts, pages, revisions, etc.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2022\/09\/image-25.png\" alt=\"\" class=\"wp-image-85183\" width=\"470\" height=\"153\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-25.png 940w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-25-64x21.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-25-300x98.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-25-768x250.png 768w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-25-190x62.png 190w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-25-276x90.png 276w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/figure>\n<\/div>\n\n\n<p>Every single column in the table has a certain type of metadata for every item. Just, for example, there are columns present for the post title, post content, post status, comment status, etc.<\/p>\n\n\n\n<p>This table mostly contains a lot of stuff that you don\u2019t need or not looking for. If you are looking for posts\/pages, you can sort the table by post_type column. You may also make use of the search bar for searching the word \u2018page\u2019, for example.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2022\/09\/image-26.png\" alt=\"\" class=\"wp-image-85184\" width=\"705\" height=\"144\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-26.png 940w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-26-64x13.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-26-300x61.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-26-768x157.png 768w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-26-190x39.png 190w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-26-441x90.png 441w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n<\/div>\n\n\n<p>Here it is! It is here where WP stores your pages and posts.<\/p>\n\n\n\n<p>From here, editing any of the items becomes easy for you for managing the content or metadata for a given page\/post as needed.<\/p>\n\n\n\n<p><strong>Taking a Backup of Your Database<\/strong><\/p>\n\n\n\n<p>Regular backup is a good practice for WordPress security. So before you make changes in the WordPress database, you should always take a backup. Ideally, an automatic backup solution in place for your entire site is what you have. But, you will be also able to export a copy of the database directly through phpMyAdmin.<\/p>\n\n\n\n<p>This can be done by clicking the \u2018Export\u2019 tab at the top:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2022\/09\/image-27.png\" alt=\"\" class=\"wp-image-85185\" width=\"470\" height=\"277\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-27.png 940w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-27-64x38.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-27-300x177.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-27-768x453.png 768w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-27-153x90.png 153w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/figure>\n<\/div>\n\n\n<p>Now, from here, just follow what is prompted for downloading a .sql export file of your database. If something goes wrong, you can always restore the backup by using the \u2018Import\u2019 tab.<\/p>\n\n\n\n<p><strong>Where To Find Your Theme\u2019s Page And Post Templates<\/strong><\/p>\n\n\n\n<p>The content and metadata of your posts and pages are stored by WordPress in the database and that data is dynamically merged into your present theme\u2019s PHP templates which you can see in your file system.<\/p>\n\n\n\n<p>You will be able to use an FTP client such as FileZilla or your cPanel file manager for accessing your site files.<\/p>\n\n\n\n<p>From the root directory of your site, go to:<\/p>\n\n\n\n<p>\/wp-content\/themes\/your-theme\/, replace your-theme with your presently active theme.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2022\/09\/image-28.png\" alt=\"\" class=\"wp-image-85186\" width=\"470\" height=\"367\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-28.png 940w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-28-64x50.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-28-300x234.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-28-768x599.png 768w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/09\/image-28-115x90.png 115w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/figure>\n<\/div>\n\n\n<p>In this directory, the single.php is your single post template whereas page.php is your page template.<\/p>\n\n\n\n<p>You can also edit these files for changing the way WordPress formats your content ( I would recommend doing this only if you know what you are doing. It is always better to use a child theme for ensuring that changes aren\u2019t overwritten by any future updates.)<\/p>\n\n\n\n<p>In Where Does WordPress Save Pages, Do keep in mind that these files do not have the content of your individual pages or posts. They just format the web pages, query the database, and direct WordPress to how &amp; where the content needs to e shown or displayed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>We have seen so far that your pages are saved in the wp_posts table of your database whereas the post and page templates get stored in the file system at wp-content\/themes\/your-theme\/. As wordPress dashboard gives you all the resources for making changes in your pots and pages. There is no need to edit them from the database. We hope you have found an answer to where does WordPress save pages in this article.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>WordPress Theme Bundle<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"338\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2022\/03\/blog-banner-13-1024x338.png\" alt=\"WordPress Theme Bundle\" class=\"wp-image-78529\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-1024x338.png 1024w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-1000x330.png 1000w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-64x21.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-300x99.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-768x253.png 768w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-1536x506.png 1536w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-2048x675.png 2048w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-1200x396.png 1200w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-190x63.png 190w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2022\/03\/blog-banner-13-273x90.png 273w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>In order to make good websites, you need good WordPress themes as well. Things get more time-consuming if you are a developer that needs to work on several website projects. For that, a WordPress theme bundle is an easy solution. VWThemes offer an amazing WordPress bundle of <strong><a href=\"https:\/\/www.vwthemes.com\/premium\/all-themes\/\" target=\"_blank\" rel=\"noreferrer noopener\">All Themes<\/a><\/strong> that contain intricately crafted themes having easy-to-customize design, responsive layout, and visually appealing looks. This entire bundle is available at greatly discounted prices which makes it a deal that you cannot miss.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever wondered where does WordPress save pages? Well, this is something non-intuitive especially if you are new to WordPress and don\u2019t know how it works. Do not worry as this article will help you know how WordPress stores and saves pages and displays them on your website. Also, have a look at Popular WordPress Themes [&hellip;]<\/p>\n","protected":false},"author":9250,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-85179","post","type-post","status-publish","format-standard","hentry","category-about-wp-themes"],"_links":{"self":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts\/85179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/users\/9250"}],"replies":[{"embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/comments?post=85179"}],"version-history":[{"count":1,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts\/85179\/revisions"}],"predecessor-version":[{"id":85187,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts\/85179\/revisions\/85187"}],"wp:attachment":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/media?parent=85179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/categories?post=85179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/tags?post=85179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}