<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wordpress on No Subject - nosubject.io -</title><link>https://nosubject.io/en/categories/wordpress/</link><description>Recent content in Wordpress on No Subject - nosubject.io -</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 09 Jul 2026 00:00:00 +0900</lastBuildDate><atom:link href="https://nosubject.io/en/categories/wordpress/index.xml" rel="self" type="application/rss+xml"/><item><title>Migrating from WordPress to Hugo</title><link>https://nosubject.io/en/wordpress-to-hugo-migration/</link><pubDate>Thu, 09 Jul 2026 00:00:00 +0900</pubDate><guid>https://nosubject.io/en/wordpress-to-hugo-migration/</guid><description>&lt;p&gt;I decided to migrate this site, which had been running on WordPress, to Hugo.&lt;/p&gt;
&lt;p&gt;WordPress is convenient. You can write posts from the admin screen, and there are many themes and plugins. But after running it for a long time, the number of things to maintain keeps growing little by little: PHP, MySQL, plugins, themes, security updates, backups, and so on.&lt;/p&gt;
&lt;p&gt;This blog is mostly a place where I leave notes about things I looked up. I do not need much dynamic behavior. For that kind of use, managing posts as Markdown files and publishing static HTML with Hugo feels like a better fit.&lt;/p&gt;</description></item><item><title>Switching the Raspberry Pi WordPress Site to Hugo</title><link>https://nosubject.io/en/raspberry-pi-wordpress-to-hugo-switch/</link><pubDate>Thu, 09 Jul 2026 00:00:00 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi-wordpress-to-hugo-switch/</guid><description>&lt;p&gt;I already wrote about migrating the article data from WordPress to Hugo in &lt;a href="https://nosubject.io/en/wordpress-to-hugo-migration/"&gt;Migrating from WordPress to Hugo&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This article covers the next step: switching the actual WordPress environment running on my Raspberry Pi to Hugo.&lt;/p&gt;
&lt;p&gt;Even when I built the environment myself, I forget the details after enough time passes. Looking back at my older notes, this site was not running WordPress directly on the host with PHP and MySQL. It was running through Docker.&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] USB Boot: Stop Using an SD Card and Boot from an SSD</title><link>https://nosubject.io/en/raspberry-pi4-clone-from-microsd-to-ssd/</link><pubDate>Thu, 06 Jan 2022 17:12:07 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-clone-from-microsd-to-ssd/</guid><description>&lt;p&gt;This is a memo from migrating a Raspberry Pi web server that had been running from an SD card to an SSD with USB boot. I had written about &lt;a href="https://nosubject.io/raspberry-pi4-pi4-%e3%81%ae%e3%82%b9%e3%83%88%e3%83%ac%e3%83%bc%e3%82%b8%e3%82%92sd%e3%82%ab%e3%83%bc%e3%83%89%e3%81%8b%e3%82%89ssd%e3%81%b8%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/" target="_blank" rel="noreferrer noopener" title="[Raspberry Pi 4] Change the Pi 4 Storage from an SD Card to an SSD"&gt;something similar&lt;/a&gt; before; this time only the data-copying method is different. This procedure may be easier.&lt;br&gt;The steps are for Ubuntu, but I think almost the same method can be used with Raspberry Pi OS. This is amateur work, so follow it at your own risk if you use it as a reference.&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Run WordPress with Docker</title><link>https://nosubject.io/en/raspberry-pi4-docker-wordpress/</link><pubDate>Sat, 13 Mar 2021 13:19:49 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-docker-wordpress/</guid><description>&lt;h3&gt;Overview&lt;/h3&gt;
&lt;p&gt;These are notes from setting up WordPress with Docker. Nginx is already running on the host side, and an SSL certificate has already been obtained, so WordPress will ride on that setup too.&lt;/p&gt;
&lt;h5&gt;Related Past Articles&lt;/h5&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href="https://nosubject.io/ubuntu-19-10-pppoe/" target="_blank" rel="noreferrer noopener"&gt;Connect with PPPoE on Ubuntu 19.10 and open ports.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://nosubject.io/raspberrypi-nuro-remove-pppoe/" target="_blank" rel="noreferrer noopener"&gt;[RaspberryPi] I switched from Docomo Hikari to Nuro Hikari, so I stopped using PPPoE and changed to normal port forwarding&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://nosubject.io/raspberry-pi4-ubuntu-20-10-headless-install/" target="_blank" rel="noreferrer noopener"&gt;[Raspberry Pi 4] Headless installation of Ubuntu 20.10. How to install without a keyboard or display&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://nosubject.io/raspberry-pi4-nginx-letsencrypt/" target="_blank" rel="noreferrer noopener"&gt;[Raspberry Pi 4] Install Nginx and obtain an SSL server certificate from Let's Encrypt&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://nosubject.io/raspberry-pi4-docker-mailserver/" target="_blank" rel="noreferrer noopener" title="[Raspberry Pi 4] Build a mail server (Postfix + Dovecot) with Docker"&gt;[Raspberry Pi 4] Build a mail server with Docker.&lt;/a&gt; &lt;/li&gt;&lt;li&gt;[Raspberry Pi 4] Run WordPress with Docker. ★ You are here&lt;/li&gt;&lt;/ol&gt;
&lt;h3&gt;Environment Tested&lt;/h3&gt;
&lt;p&gt;Raspberry Pi 4 Ubuntu 20.10 (arm64)&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Install Nginx and Obtain an SSL Server Certificate from Let's Encrypt</title><link>https://nosubject.io/en/raspberry-pi4-nginx-letsencrypt/</link><pubDate>Sat, 23 Jan 2021 17:54:14 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-nginx-letsencrypt/</guid><description>&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;Since I &lt;a href="https://nosubject.io/raspberry-pi4-ubuntu-20-10-headless-install/" title="[Raspberry Pi 4] Headless installation of Ubuntu 20.10. How to install without a keyboard or display" target="_blank" rel="noreferrer noopener"&gt;installed Ubuntu 20.10 on a Raspberry Pi 4&lt;/a&gt;, I migrated the mail server and WordPress running on my current home server over to the Raspberry Pi. These are my notes.&lt;/p&gt;
&lt;h3&gt;Environment Tested&lt;/h3&gt;
&lt;p&gt;Raspberry Pi 4 Ubuntu 20.10 (arm64)&lt;/p&gt;
&lt;p&gt;$ nginx -v&lt;br&gt;nginx version: nginx/1.18.0 (Ubuntu)&lt;/p&gt;
&lt;p&gt;$ certbot --version&lt;br&gt;certbot 1.11.0&lt;/p&gt;
&lt;h3&gt;Prerequisites and Preparation&lt;/h3&gt;
&lt;p&gt;Complete the Ubuntu installation, PPPoE settings, and domain settings in advance. This is the same as what I did previously on the Pi 3, so I will omit the details.&lt;/p&gt;</description></item><item><title>[WordPress] Change VCCW's PHP Version to 7.4</title><link>https://nosubject.io/en/vccw-php74/</link><pubDate>Fri, 03 Apr 2020 12:25:13 +0900</pubDate><guid>https://nosubject.io/en/vccw-php74/</guid><description>&lt;p&gt;The VCCW environment I use to verify WordPress behavior had a different PHP version from production, so I aligned them.&lt;/p&gt;
&lt;h3&gt;Method&lt;/h3&gt;
&lt;p&gt;&lt;a rel="noreferrer noopener" aria-label="Change the PHP version installed in VCCW (opens in a new tab)" href="https://qiita.com/miya0001/items/2499917d7ec3bc905781" target="_blank"&gt;Change the PHP version installed in VCCW&lt;/a&gt;&lt;br&gt;The author of VCCW provides the method, so I followed it.&lt;/p&gt;
&lt;p&gt;To apply it to an already running VCCW environment, log in to the guest OS with &lt;code&gt;vagrant ssh&lt;/code&gt; and run the following command.&lt;/p&gt;</description></item><item><title>WordPress: How to Paste Code Between the &lt;head&gt; and &lt;/head&gt; Tags in the Cocoon Child Theme</title><link>https://nosubject.io/en/wordpress-cocoon-edit-header-tag/</link><pubDate>Sun, 23 Feb 2020 00:19:05 +0900</pubDate><guid>https://nosubject.io/en/wordpress-cocoon-edit-header-tag/</guid><description>&lt;p&gt;I use the Cocoon Child theme. I did not know how to put the Google Adsense code inside the &amp;lt;head&amp;gt; tag, so I looked it up.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;*Update: You can now change this from the settings screen, so I added notes about that too.&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;Configuration&lt;/h3&gt;
&lt;ul&gt;&lt;li&gt;In the WordPress dashboard, open &lt;span class="bold"&gt;Appearance -&gt; Theme Editor&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;From the theme file list on the right, select &lt;span class="bold"&gt;tmp-user -&gt; head-insert.php&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;At the bottom there is a line that says &lt;span class="red"&gt;&amp;lt;? //全ての訪問者をカウントする場合は以下に挿入 ?&amp;gt;&lt;/span&gt;. Paste the code you want to insert below that line.&lt;/li&gt;&lt;li&gt;Press the &lt;span class="bold"&gt;Update File&lt;/span&gt; button at the bottom of the screen, and you are done.&lt;/li&gt;&lt;/ul&gt;
&lt;figure class="wp-block-image size-large"&gt;&lt;img src="https://nosubject.io/wp-content/uploads/2020/02/image-5.png" alt="" class="wp-image-189"/&gt;&lt;/figure&gt;
&lt;h4&gt;head-insert.php Configuration Example&lt;/h4&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;&amp;lt;?php
//ヘッダー部分（&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;内）にタグを挿入したいときは、このテンプレートに挿入（ヘッダーに挿入する解析タグなど）
//子テーマのカスタマイズ部分を最小限に抑えたい場合に有効なテンプレートとなります。
//例：&amp;lt;script type="text/javascript"&amp;gt;解析コード&amp;lt;/script&amp;gt;
?&amp;gt;
&amp;lt;?php if (!is_user_administrator()) :
//管理者を除外してカウントする場合は以下に挿入 ?&amp;gt;
&lt;p&gt;&amp;lt;?php endif; ?&amp;gt;
&amp;lt;?php //全ての訪問者をカウントする場合は以下に挿入 ?&amp;gt;
&amp;lt;script data-ad-client=&amp;ldquo;ca-pub-XXXXXXX&amp;rdquo; async src=&amp;ldquo;&lt;a href="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js%22&amp;amp;gt;&amp;amp;lt;/script"&gt;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&amp;gt;&amp;lt;/script&lt;/a&gt;&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;</description></item><item><title>I Tried Using the Relaxed Kosugi Maru Web Font (Google Font) in a WordPress Theme</title><link>https://nosubject.io/en/wordpress-webfont-kosugi-maru-google-font/</link><pubDate>Sat, 22 Feb 2020 21:26:55 +0900</pubDate><guid>https://nosubject.io/en/wordpress-webfont-kosugi-maru-google-font/</guid><description>&lt;p&gt;I tried configuring a web font in WordPress. This time I used Kosugi Maru from Google Fonts.&lt;br&gt;The theme for this site is Cocoon Child, but I think the basics are the same for other themes.&lt;br&gt;No additional plugins are required.&lt;/p&gt;
&lt;h3&gt;Configuration&lt;/h3&gt;
&lt;ul&gt;&lt;li&gt;Open Appearance -&gt; Customize -&gt; Additional CSS from the dashboard.&lt;/li&gt;&lt;li&gt;There is an input area on the left, so add the font settings there.&lt;/li&gt;&lt;li&gt;A preview is displayed as soon as you enter it, which makes it easy to see what changed.&lt;/li&gt;&lt;/ul&gt;
&lt;figure class="wp-block-image size-large"&gt;&lt;img src="https://nosubject.io/wp-content/uploads/2020/02/image.png" alt="" class="wp-image-154"/&gt;&lt;/figure&gt;
&lt;h4&gt;Configuration Example&lt;/h4&gt;
&lt;p&gt;This time I configured it as follows.&lt;br&gt;The only key points are "fetch the font with @import" and "apply it to the style with font-family:", so the setup is simple.&lt;/p&gt;</description></item></channel></rss>