{"id":24,"date":"2018-09-02T03:09:51","date_gmt":"2018-09-02T03:09:51","guid":{"rendered":"http:\/\/www.hoopchuk.org\/wordpress\/?page_id=24"},"modified":"2020-07-27T18:45:40","modified_gmt":"2020-07-27T18:45:40","slug":"code","status":"publish","type":"page","link":"https:\/\/www.hoopchuk.org\/wordpress\/code\/","title":{"rendered":"Code"},"content":{"rendered":"<p>I am passionate about what programming and computers and all things geeky.<\/p>\n<p>I added this via &#8220;wp post edit&#8221;.<\/p>\n<p>Testing &#8220;insert characters without them being munged&#8221; \ud83d\ude42<\/p>\n<p>Simple &#8220;&lt;pre&gt;&#8221; is all you need here:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;pre&gt;$ ls\n...\n&lt;\/pre&gt;\n<\/pre>\n<p>Which renders like:<\/p>\n<pre>\n$ ls\n...\n<\/pre>\n<p>How to edit using &#8220;wp&#8221; locally on the server that WordPress is running on:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;hoopchuk@box1060 ~]$ wp post edit 24 --path=\/home1\/hoopchuk\/public_html\/wordpress\/\n<\/pre>\n<p>AWESOME &#8230;<\/p>\n<p>To get a page:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;ross@snafu deleteme]$ .\/wp post get 24 --ssh=hoopchuk@hoopchuk.org --path=\/home1\/hoopchuk\/public_html\/wordpress\/ --field=content &gt;code.txt\n<\/pre>\n<p>To update a page:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;ross@snafu deleteme]$ rl ; cat code.txt | .\/wp post update 24 --ssh=hoopchuk@hoopchuk.org --path=\/home1\/hoopchuk\/public_html\/wordpress\/ --field=content -\n<\/pre>\n<p>VARIOUS cool things with &#8220;wp-cli&#8221;:<\/p>\n<p><a href=\"https:\/\/www.codeinwp.com\/blog\/wp-cli\/\">https:\/\/www.codeinwp.com\/blog\/wp-cli\/<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;a href=&quot;https:\/\/www.codeinwp.com\/blog\/wp-cli\/&quot;&gt;https:\/\/www.codeinwp.com\/blog\/wp-cli\/&lt;\/a&gt;\n<\/pre>\n<p># Subversion<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$Id: code.txt 4039 2019-03-29 14:42:07Z hoopchuk $\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am passionate about what programming and computers and all things geeky. I added this via &#8220;wp post edit&#8221;. Testing &#8220;insert characters without them being munged&#8221; \ud83d\ude42 Simple &#8220;&lt;pre&gt;&#8221; is all you need here: &lt;pre&gt;$ ls &#8230; &lt;\/pre&gt; Which renders like: $ ls &#8230; How to edit using &#8220;wp&#8221; locally on the server that WordPress &hellip; <a href=\"https:\/\/www.hoopchuk.org\/wordpress\/code\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Code&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nf_dc_page":"","wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","nfd_onboarding_generated":"","footnotes":""},"class_list":["post-24","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/PaQUmf-o","_links":{"self":[{"href":"https:\/\/www.hoopchuk.org\/wordpress\/wp-json\/wp\/v2\/pages\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hoopchuk.org\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hoopchuk.org\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hoopchuk.org\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hoopchuk.org\/wordpress\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":5,"href":"https:\/\/www.hoopchuk.org\/wordpress\/wp-json\/wp\/v2\/pages\/24\/revisions"}],"predecessor-version":[{"id":534,"href":"https:\/\/www.hoopchuk.org\/wordpress\/wp-json\/wp\/v2\/pages\/24\/revisions\/534"}],"wp:attachment":[{"href":"https:\/\/www.hoopchuk.org\/wordpress\/wp-json\/wp\/v2\/media?parent=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}