I am passionate about what programming and computers and all things geeky.
I added this via “wp post edit”.
Testing “insert characters without them being munged” 🙂
Simple “<pre>” is all you need here:
<pre>$ ls ... </pre>
Which renders like:
$ ls ...
How to edit using “wp” locally on the server that WordPress is running on:
[hoopchuk@box1060 ~]$ wp post edit 24 --path=/home1/hoopchuk/public_html/wordpress/
AWESOME …
To get a page:
[ross@snafu deleteme]$ ./wp post get 24 --ssh=hoopchuk@hoopchuk.org --path=/home1/hoopchuk/public_html/wordpress/ --field=content >code.txt
To update a page:
[ross@snafu deleteme]$ rl ; cat code.txt | ./wp post update 24 --ssh=hoopchuk@hoopchuk.org --path=/home1/hoopchuk/public_html/wordpress/ --field=content -
VARIOUS cool things with “wp-cli”:
https://www.codeinwp.com/blog/wp-cli/
<a href="https://www.codeinwp.com/blog/wp-cli/">https://www.codeinwp.com/blog/wp-cli/</a>
# Subversion
$Id: code.txt 4039 2019-03-29 14:42:07Z hoopchuk $