Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does WordPress store HTML pages?

Tags:

wordpress

I'm new to WordPress, but I've been experimenting with it and I like it.

So, I'm moving my current site--mostly static HTML files--over to WordPress. My procedure, generally, has been to create new pages in WordPress and then copy the relevant body HTML from my files to WordPress. I'm curious, though, where does WordPress store these pages?

Where are the file(s) containing the HTML? ... It would be nice to be able to work with the pages someplace other than the tiny editor built into WordPress's dashboard.

like image 905
Al C Avatar asked Jul 19 '10 22:07

Al C


People also ask

Does WordPress store HTML in database?

WordPress stores the content of your posts and pages in the wp_posts table of your database. Because WordPress uses dynamic PHP templates to display your content, it does not store an individual HTML file for each page on your site.

Where is my index HTML file in WordPress?

If it is a WordPress website, the index file should be under this directory: /website-root/wp-content/themes/ <- then the theme folder. The theme, that's active on your website should be mentioned under Appearance > Themes. If you're not sure which one it is in /themes directory, look for the title here.

Where is the content of a WordPress website stored?

WordPress stores all uploads, plugins, and themes in the wp-content folder. It is generally assumed that you can edit files and folders inside wp-content folder.


1 Answers

They are in WordPress's database, specifically the wp_posts table, so unfortunately you have to use the admin console editor to change their content.

Update: Another option would be to use the WordPress API to make changes to the content.

like image 198
Pat Avatar answered Nov 04 '22 00:11

Pat