skip to Main Content

I can use any technology in my local environment, but I cannot use anything like node.js or php for the production server.

So far I have built the website with nunjucks, a templating engine that outputs html files that I then simply upload them to the production server, node.js only needs to run on my local environment.

Is there any way to use WordPress like that? I want wordpress for the wysiwyg editor and for the SEO plugins.

2

Answers


  1. Chosen as BEST ANSWER

    There are various plugins to achieve this, I tested this one and it works: https://wordpress.org/plugins/static-html-output-plugin/

    Of course there is no search or commenting in the static version, but that is to be expected.


  2. If I get that right, than you would like to setup a wordpress site locally and then turn that into static html files, which you can upload to the production server?

    In that case wget or curl are your friends. To download an entire site as static html something like that will do (adjust parameters and urls as you need)

    wget 
     --recursive 
     --no-clobber 
     --page-requisites 
     --html-extension 
     --convert-links 
     --restrict-file-names=windows 
     --domains website.org 
     --no-parent 
         localhost:12345
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search