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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With