WP CLI edit post refresh webpage without having to close file

25 Views Asked by At

I am new to working with WP CLI but finding it to be a helpful tool so far. I have found that if I work on a theme file in VIM and save the file, I can refresh the webpage run through local server and the updated code will be reflected. If I use WP Edit on a page and do the same, the updated code will not reflect on the page. Instead, I must close the file in order to have the updated code be reflected on the website. I guess this has to do with the pages being in the DB rather than a theme file, but I am curious if there is a way to make it work more like theme files. While not a big deal to close and re-open the file, it would be nice to save that step. I have searched the inter-webs and also searched on stack, but unable to find an answer to this question. I have also searched on the WP CLI documentation for posts and didn't see any commands that looked to accomplish this. Please and thank you.

0

There are 0 best solutions below