So I’m in a bit of a dilemma, And I am looking for advice from those more experienced with the delights of WordPress than I am.
I few years ago built a website for my sports club, it was before I even knew wordpress existed (so a relative newb) and I also used it to keep my webdev uni skills fresh so I built it all manually (html/php/js/css/xml etc). I did specifically build it modularly so it would be easy to maintain (all the data in xml, articles in their own html files in their own directory, use of css etc) but it wasn’t very scalable and it always required the use of an ftp client. Now I generally prefer to edit like this but it’s not always convenient as I don’t always have access to an ftp and it’s dificult to give access to other non-tech savy people.
So fast forward to the last 6 months, I discovered wordpress and have migrated the majority of the content into the database. All the images, posts are in, all the custom WordPress loops for posts/gallery/ menus etc are working, however I have not migrated my html/php files. I was just planning to leave them stored as files in the domain root however there are some features of WordPress thst need them defined in their database. My concern however if I move them I understand that the pages will be stored in the WordPress database and will no longer be editable via ftp and I’ll have to export and import every time which seems like a clunky solution .
Now im sure this is just a ‘me’ thing but I generally prefer to edit the code manually anyway but there are several aspects I don’t like including the concept php integration: defining “code snippets” via the WordPress console for inclusion in pages. This seems like another really clunky solution (not having used it mind you), unless you are re-using code a lot.
So I have a few options
1. Just suck it up and store the pages in the database
2. Stay as I am but give up on the additional features
3. Find a collection of plugins that can sort out all my problems and I can live happily ever after. Either allowing the database to see custom pages in the root or to allow me to edit pages with a decent editor (not found much outside of improved editors)
Any suggestions or solutions welcome
[ad_2]
You should be using the post/page template system to hook into WordPress’s internal database management while also allowing you to edit whatever code you need via a custom or child theme.
I would strongly urge you two move away from an FTP situation and into a git repo situation so you can push your code to a repo and then pull it into your site (either as a theme or plugin update).
The way you’re doing it now is very old school and hasn’t been the “right way” in quite some time.
Build your own theme. Check out underscores.
Build your own theme for sure.