DEV Community

Discussion on: Looking For a Simpler Way To Develop WordPress Themes Locally.

Collapse
weswedding profile image
Weston Wedding

Not specific to Wordpress but from PHP/MySQL work in general (and Drupal):

The approach I take with the database, which works because I have full control of both sides of the equation, is to just do a database dump on the remote server and then use the file I've generated to replicate the database locally. I've got all the content and configuration done, boom, on to coding!

Remote connecting to the DB is possible but you'll need it to be a copy of the database. And requires a little bit of tech savvy, potentially. And introduces some security concerns.

Collapse
drewknab profile image
Drew Knab • Edited on

The problem with doing that with Wordpress is the url gets hardcoded in so many places.

While it can be replaced with localhost or what have you, it’s kinda pain in the butt.

Collapse
jackharner profile image
Jack Harner πŸš€ Author

Interesting approach. I'll definitely look into that.