• Bloke

    (@bloke)


    I need help understanding the relationship VS code and using it to develop WordPress sites locally. I have always used Dreamweaver to edit code and Wamp and loaded my site at http://localhost/sitename.

    In VS code they have a live server and it opens at http://127.0.0.1:5500/ but I cannot display my site at http://127.0.0.1:5500/sitename

    It opens just a directory of files. Is there a way I can open my site in VS code, click on live server and view it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • WordPress requires PHP, MySQL, and a fully-fledged webserver like Apache, Nginx, IIS, etc. See: https://ww.wp.xz.cn/about/requirements/

    VSCode’s Live Server doesn’t provide any of these.

    Here’s a tool that will give you everything you need to run WordPress on your local computer: https://localwp.com/

    Other options are WAMP, XAMPP, DeskServer, etc

    You may use VS Code to develop/customize theme or plugin files, but these need to be loaded in the WordPress environment to see any effects.

    Thread Starter Bloke

    (@bloke)

    Ok I think I understand. I can edit and debug the code, JavaScript, CSS and the HTML and save. Then open my local server to view it on my WAMP server.

    So the live server with VS code is really for developing React type projects?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Local WordPress and VS code live server’ is closed to new replies.