<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ブロック &#8211; WordPress Memo</title>
	<atom:link href="https://blog.riverforest-wp.info/tag/%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.riverforest-wp.info</link>
	<description>WordPress に関する覚え書き</description>
	<lastBuildDate>Fri, 09 May 2025 12:48:52 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.riverforest-wp.info/wp-content/uploads/2018/05/cropped-icon-256x256-1-32x32.png</url>
	<title>ブロック &#8211; WordPress Memo</title>
	<link>https://blog.riverforest-wp.info</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ブロックの日本語化に関する補足事項</title>
		<link>https://blog.riverforest-wp.info/block-internationalization/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Wed, 22 Nov 2023 07:13:30 +0000</pubDate>
				<category><![CDATA[Function]]></category>
		<category><![CDATA[block.json]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[ブロック]]></category>
		<category><![CDATA[国際化]]></category>
		<category><![CDATA[日本語化]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=3545</guid>

					<description><![CDATA[はじめに 現在、自作ブロックの日本語化を、「ブロックエディターハンドブック／開発ガイド／国際化」に準じて行っていますが、現在の、block.json でスクリプトをロードする方法には適していないので、ここに捕捉事項として [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>現在、自作ブロックの日本語化を、「ブロックエディターハンドブック／開発ガイド／国際化」に準じて行っていますが、現在の、block.json でスクリプトをロードする方法には適していないので、ここに捕捉事項として記す事にします。</p>



<style>
.simpleblogcard_img_block60f7521bab5228fc72b1ff68cf6c738b {
  float: right;
  padding: 10px;
}
.simpleblogcard_border60f7521bab5228fc72b1ff68cf6c738b {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_title60f7521bab5228fc72b1ff68cf6c738b {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_description60f7521bab5228fc72b1ff68cf6c738b {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://ja.wordpress.org/team/handbook/block-editor/how-to-guides/internationalization/>
				<figure class="simpleblogcard_img_block60f7521bab5228fc72b1ff68cf6c738b">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 56px;" src="https://s.w.org/images/home/wordpress-default-ogimage.png" alt="国際化 – Japanese Team – WordPress.org 日本語" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_border60f7521bab5228fc72b1ff68cf6c738b">
			ja.wordpress.org			<div class="simpleblogcard_title60f7521bab5228fc72b1ff68cf6c738b">
				国際化 – Japanese Team – WordPress.org 日本語			</div>
							<div class="simpleblogcard_description60f7521bab5228fc72b1ff68cf6c738b">
					国際化とは何か ? 国際化とはソフトウエア、特にここでは WordPress に対して複数言語のサポートを提供…				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<h3 class="wp-block-heading">ハンドル名の指定</h3>



<p>上記でのハンドル名の指定方法は、以下の様になっています。この方法では、wp_register_script で、ハンドル名 <strong>myguten-script</strong> を指定し、register_block_type の、editor_script で、<strong>myguten-script </strong>を再度指定しています。</p>



<pre class="prism line-numbers"><code class="language-php language-html">&lt;?php
/**
 * Plugin Name: Simple Block
 * Text Domain: myguten
 */
function myguten_simple_block_init() {
    wp_register_script(
        'myguten-script',
        plugins_url( 'block.js', __FILE__ ),
        array( 'wp-blocks', 'wp-element', 'wp-i18n', 'wp-block-editor' )
    );
 
    register_block_type( 'myguten/simple-block', array(
        'api_version' =&gt; 2,
        'editor_script' =&gt; 'myguten-script',
    ) );
}
add_action( 'init', 'myguten_simple_block_init' );</code></pre>



<p>その後に、php で、<strong>wp_set_script_translations</strong> の第一引数に <strong>registrer_block_type</strong> で登録したハンドル名 <strong>myguten-script</strong> を指定する方式です。</p>



<style>
.simpleblogcard_img_blockb8bcc92bbffd10d2b5054b0e737702bb {
  float: right;
  padding: 10px;
}
.simpleblogcard_borderb8bcc92bbffd10d2b5054b0e737702bb {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_titleb8bcc92bbffd10d2b5054b0e737702bb {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_descriptionb8bcc92bbffd10d2b5054b0e737702bb {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://developer.wordpress.org/reference/functions/wp_set_script_translations/>
				<figure class="simpleblogcard_img_blockb8bcc92bbffd10d2b5054b0e737702bb">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 52px;" src="https://developer.wordpress.org/wp-content/themes/wporg-developer-2023/images/opengraph-image.png" alt="wp_set_script_translations() – Function | Developer.WordPress.org" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_borderb8bcc92bbffd10d2b5054b0e737702bb">
			developer.wordpress.org			<div class="simpleblogcard_titleb8bcc92bbffd10d2b5054b0e737702bb">
				wp_set_script_translations() – Function | Developer.WordPress.org			</div>
							<div class="simpleblogcard_descriptionb8bcc92bbffd10d2b5054b0e737702bb">
					Sets translated strings for a script.				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<pre class="prism line-numbers"><code class="language-php language-html">&lt;?php
function myguten_set_script_translations() {
    wp_set_script_translations( 'myguten-script', 'myguten' );
}
add_action( 'init', 'myguten_set_script_translations' );</code></pre>



<p>上記のやり方を、現在の block.json で読み込む方式に置き換えると以下の様になります。</p>



<pre class="prism line-numbers"><code class="language-php language-html">&lt;?php
/**
 * Plugin Name: Simple Block
 * Text Domain: myguten
 */
function myguten_simple_block_init() {
	register_block_type(
		__DIR__ . '/block/build',
	);
}
add_action( 'init', 'myguten_simple_block_init' );</code></pre>



<p>block.json を置いたディレクトリを検索してそれを読み込むという形です。ここでは、ハンドル名は指定していません。block.json の方を見てみると、editorScript の項目がそれらしいのですが、スクリプトのハンドルという言葉はあるのですが、ファイルへのパスを指定するのが通常の様です。</p>



<style>
.simpleblogcard_img_blockc5c9fb303882d9de9d80a3bdde5bcd9c {
  float: right;
  padding: 10px;
}
.simpleblogcard_borderc5c9fb303882d9de9d80a3bdde5bcd9c {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_titlec5c9fb303882d9de9d80a3bdde5bcd9c {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_descriptionc5c9fb303882d9de9d80a3bdde5bcd9c {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/>
				<figure class="simpleblogcard_img_blockc5c9fb303882d9de9d80a3bdde5bcd9c">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 52px;" src="https://developer.wordpress.org/wp-content/themes/wporg-developer-2023/images/opengraph-image.png" alt="Metadata in block.json – Block Editor Handbook | Developer.WordPress.org" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_borderc5c9fb303882d9de9d80a3bdde5bcd9c">
			developer.wordpress.org			<div class="simpleblogcard_titlec5c9fb303882d9de9d80a3bdde5bcd9c">
				Metadata in block.json – Block Editor Handbook | Developer.WordPress.org			</div>
							<div class="simpleblogcard_descriptionc5c9fb303882d9de9d80a3bdde5bcd9c">
					Starting with the WordPress 5.8 release, we recommend using the block.json metadata file a&#8230;				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<p><strong>register_block_type</strong> では、ハンドル名を渡さずに、WordPress の php の関数 <strong>generate_block_asset_handle</strong> で第１引数にブロック名、第２引数に editorScript を渡したらハンドル名を取得し国際化が上手くいきましたので、以下に示します。</p>



<pre class="prism line-numbers"><code class="language-php language-html">function myguten_set_script_translations() {
　　$script_handle = generate_block_asset_handle( 'myguten/simple-block', 'editorScript' );
　　wp_set_script_translations( $script_handle, 'myguten' );
}
add_action( 'init', 'myguten_set_script_translations' );</code></pre>



<style>
.simpleblogcard_img_blocka4e50e56665d163dd803be78351519d6 {
  float: right;
  padding: 10px;
}
.simpleblogcard_bordera4e50e56665d163dd803be78351519d6 {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_titlea4e50e56665d163dd803be78351519d6 {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_descriptiona4e50e56665d163dd803be78351519d6 {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://developer.wordpress.org/reference/functions/generate_block_asset_handle/>
				<figure class="simpleblogcard_img_blocka4e50e56665d163dd803be78351519d6">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 52px;" src="https://developer.wordpress.org/wp-content/themes/wporg-developer-2023/images/opengraph-image.png" alt="generate_block_asset_handle() – Function | Developer.WordPress.org" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_bordera4e50e56665d163dd803be78351519d6">
			developer.wordpress.org			<div class="simpleblogcard_titlea4e50e56665d163dd803be78351519d6">
				generate_block_asset_handle() – Function | Developer.WordPress.org			</div>
							<div class="simpleblogcard_descriptiona4e50e56665d163dd803be78351519d6">
					Generates the name for an asset based on the name of the block and the field name provided&#8230;				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<h3 class="wp-block-heading">block.json の日本語化</h3>



<p>ついでにわかりにくい、block.json の日本語化について以下に記します。上記の、<strong>register_block_type</strong> に、配列で翻訳対象を列記します。keywords は複数あるので更なる配列にします。</p>



<pre class="prism line-numbers"><code class="language-php language-html">&lt;?php
/**
 * Plugin Name: Simple Block
 * Text Domain: myguten
 */
function myguten_simple_block_init() {
	register_block_type(
		__DIR__ . '/block/build',
		array(
			'title' =&gt; _x( 'Simple Block', 'block title', 'myguten' ),
			'description' =&gt; _x( 'Example static block scaffolded with Create Block tool.', 'block description', 'myguten' ),
			'keywords' =&gt; array(
				_x( 'simple', 'block keyword', 'myguten' ),
				_x( 'static', 'block keyword', 'myguten' ),
				_x( 'tool', 'block keyword', 'myguten' ),
			),
		)
	);
}
add_action( 'init', 'myguten_simple_block_init' );</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ブロックによるHTMLとCSSだけで動くギャラリープラグイン</title>
		<link>https://blog.riverforest-wp.info/simple-block-gallery/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Wed, 22 Jan 2020 22:58:32 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Masonry]]></category>
		<category><![CDATA[ギャラリー]]></category>
		<category><![CDATA[スライダー]]></category>
		<category><![CDATA[ブロック]]></category>
		<category><![CDATA[画像]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=1947</guid>

					<description><![CDATA[はじめに ブロックによるギャラリープラグインです。一番の特徴は、HTML と CSS だけで動く事です。そのため、プラグインを止めても、保存したコンテンツは残り崩れません。 いろいろと凄いギャラリープラグインはありますが [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>ブロックによるギャラリープラグインです。一番の特徴は、HTML と CSS だけで動く事です。そのため、プラグインを止めても、保存したコンテンツは残り崩れません。</p>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/simple-block-gallery/assets/icon-256x256.png?rev=2231863" alt="Simple Block Gallery のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/simple-block-gallery/" class="pluginstatsview-astyle">Simple Block Gallery</a></div>
			<div class="pluginstatsview-small">画像にタイルとスライダーのエフェクトを追加します。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/simple-block-gallery/#reviews" title="3.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span>
			</span>
	</a>(1)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">1,000以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/simple-block-gallery.1.29.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2020-01-22</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>



<p>いろいろと凄いギャラリープラグインはありますが、そのほとんどが、プラグインを止めるとコンテンツが崩れてしまいます。プラグインのサポートがあるうちは良いですが、サポートが無くなった場合に苦労する場合が多いので、HTML と CSS だけで動くものがあってもいいかな？と思い、作りました。そのため機能は必要最小限です。</p>



<p>さらに細かく調整したい場合は、ブロックメニュー「HTMLとして編集」で HTML と CSS を編集してください。</p>



<h3 class="wp-block-heading">仕様</h3>



<ul class="wp-block-list">
<li>Masonry
<ul class="wp-block-list">
<li>１画像の幅を指定できます。</li>



<li>画像間のスペースを指定できます。</li>



<li>画像の角を丸くできます。</li>
</ul>
</li>



<li>スライダー
<ul class="wp-block-list">
<li>スライド間隔を指定できます。</li>



<li><strong>注意：</strong>CSS のクラスと、@keyframes に、ギャラリーの最初に呼び出される画像の ID を指定していますので、同一投稿内の複数のスライダーの最初の画像に同じ画像を指定すると、表示が乱れます。</li>
</ul>
</li>
</ul>



<figure class="wp-block-gallery aligncenter has-nested-images columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc6357239ea&quot;}" data-wp-interactive="core/image" data-wp-key="69cc6357239ea" class="wp-block-image size-large wp-lightbox-container"><img fetchpriority="high" loading="eager" decoding="async" width="1024" height="599" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" data-id="1951" src="https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-1-1024x599.png" alt="" class="wp-image-1951" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-1-1024x599.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-1-300x175.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-1-768x449.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-1.png 1497w" sizes="(max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635723fd4&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635723fd4" class="wp-block-image size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="524" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" data-id="1952" src="https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-2-1024x524.png" alt="" class="wp-image-1952" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-2-1024x524.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-2-300x154.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-2-768x393.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-2.png 1517w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc63572459d&quot;}" data-wp-interactive="core/image" data-wp-key="69cc63572459d" class="wp-block-image size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="524" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" data-id="1953" src="https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-3-1024x524.png" alt="" class="wp-image-1953" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-3-1024x524.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-3-300x154.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-3-768x393.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200122/screenshot-3.png 1517w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>
</figure>



<h3 class="wp-block-heading">動作</h3>



<figure class="wp-block-video aligncenter"><video height="720" style="aspect-ratio: 1280 / 720;" width="1280" controls src="https://blog.riverforest-wp.info/wp-content/uploads/20200122/simple-block-gallery.mp4"></video></figure>
]]></content:encoded>
					
		
		<enclosure url="https://blog.riverforest-wp.info/wp-content/uploads/20200122/simple-block-gallery.mp4" length="39784937" type="video/mp4" />

			</item>
		<item>
		<title>ブログカードのプラグイン</title>
		<link>https://blog.riverforest-wp.info/simple-blog-card/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Tue, 12 Nov 2019 23:03:58 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[OGP]]></category>
		<category><![CDATA[ショートコード]]></category>
		<category><![CDATA[ブログカード]]></category>
		<category><![CDATA[ブロック]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=1754</guid>

					<description><![CDATA[次ページ：カスタマイズ &#62;&#62; 1概要 2カスタマイズ マウスオーバーか長押しで説明を表示。 はじめに OGP を取得して、ブログカードを出力するプラグインを作成しました。 動作 使用方法 次ページ：カスタマイ [&#8230;]]]></description>
										<content:encoded><![CDATA[<div class="pagebreak-description-next-page-link"><a href="https://blog.riverforest-wp.info/simple-blog-card/2/" class="post-page-numbers">次ページ：カスタマイズ &gt;&gt;</a></div><div class="pagebreak-description-pagination"> <span class="cp_tooltip_description"><span class="post-page-numbers current" aria-current="page">1</span><span class="cp_tooltip_description_text">概要</span></span> <span class="cp_tooltip_description"><a href="https://blog.riverforest-wp.info/simple-blog-card/2/" class="post-page-numbers">2</a><span class="cp_tooltip_description_text">カスタマイズ</span></span></p></div><div class="pagebreak-description-for-over">マウスオーバーか長押しで説明を表示。</div><div class="pagebreak-description-next-page-link"></div>
<h3 class="wp-block-heading">はじめに</h3>



<p>OGP を取得して、ブログカードを出力するプラグインを作成しました。</p>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/simple-blog-card/assets/icon-256x256.png?rev=2191000" alt="Simple Blog Card のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/simple-blog-card/" class="pluginstatsview-astyle">Simple Blog Card</a></div>
			<div class="pluginstatsview-small">OGP を取得し、ブログカードを表示します。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/simple-blog-card/#reviews" title="5.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span>
			</span>
	</a>(3)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">3,000以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/simple-blog-card.2.38.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2019-11-12</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:31 時点の統計	</div>
</div>



<h3 class="wp-block-heading">動作</h3>



<figure class="wp-block-video"><video controls src="https://blog.riverforest-wp.info/wp-content/uploads/20191113/simple-blog-card-1.mp4"></video></figure>



<h3 class="wp-block-heading">使用方法</h3>



<ul class="wp-block-list">
<li>ブロックとショートコードの両方に対応しています。</li>



<li>URL を指定して、それに対応したブログカードを表示させます。</li>



<li>タイトルと説明を表示する文字数を指定できます。</li>



<li>OGP 画像を表示します。</li>



<li>表示される OGP 画像のサイズを指定できます。</li>



<li>タイトルと説明を変更できます。</li>



<li>Line のブログカード風のカードです。色変更ができます。 </li>
</ul>


<div class="pagebreak-description-next-page-link"><a href="https://blog.riverforest-wp.info/simple-blog-card/2/" class="post-page-numbers">次ページ：カスタマイズ &gt;&gt;</a></div><div class="pagebreak-description-pagination"> <span class="cp_tooltip_description"><span class="post-page-numbers current" aria-current="page">1</span><span class="cp_tooltip_description_text">概要</span></span> <span class="cp_tooltip_description"><a href="https://blog.riverforest-wp.info/simple-blog-card/2/" class="post-page-numbers">2</a><span class="cp_tooltip_description_text">カスタマイズ</span></span></p></div><div class="pagebreak-description-for-over">マウスオーバーか長押しで説明を表示。</div><div class="pagebreak-description-next-page-link"></div>]]></content:encoded>
					
		
		<enclosure url="https://blog.riverforest-wp.info/wp-content/uploads/20191113/simple-blog-card-1.mp4" length="26588653" type="video/mp4" />

			</item>
		<item>
		<title>子ページのアーカイブをカード形式で表示するプラグイン</title>
		<link>https://blog.riverforest-wp.info/child-pages-card/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Sun, 10 Nov 2019 22:24:02 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[アーカイブ]]></category>
		<category><![CDATA[ショートコード]]></category>
		<category><![CDATA[ブロック]]></category>
		<category><![CDATA[子ページ]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=1742</guid>

					<description><![CDATA[はじめに 自分のサイト制作でカスタムテンプレートを使用して行っていた事なのですが、プラグインにしました。 動作 使用方法]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>自分のサイト制作でカスタムテンプレートを使用して行っていた事なのですが、プラグインにしました。</p>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/child-pages-card/assets/icon-256x256.png?rev=2189351" alt="Child Pages Card のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/child-pages-card/" class="pluginstatsview-astyle">Child Pages Card</a></div>
			<div class="pluginstatsview-small">子ページのアーカイブをカード形式で表示します。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/child-pages-card/#reviews" title="4.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-empty"></span>
			</span>
	</a>(2)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">60以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/child-pages-card.2.07.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2019-11-10</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>



<h3 class="wp-block-heading">動作</h3>



<figure class="wp-block-video"><video height="720" style="aspect-ratio: 1280 / 720;" width="1280" controls src="https://blog.riverforest-wp.info/wp-content/uploads/20191111/child-pages-card.mp4"></video></figure>



<h3 class="wp-block-heading">使用方法</h3>



<ul class="wp-block-list">
<li>ブロックとショートコードの両方に対応しています。</li>



<li>親ページの ID を指定して、それに対応した子ページを表示させます。</li>



<li>昇順・降順の並ぶ替えができます。</li>



<li>本文から文字数を指定して抜粋表示します。</li>



<li>アイキャッチ画像を表示します。アイキャッチ画像が無ければサイトアイコンを表示し、サイトアイコンも無ければ WordPress アイコンを表示します。</li>



<li>Line のブログカード風のカードです。色変更ができます。</li>
</ul>



<figure class="wp-block-gallery has-nested-images columns-1 is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex">
<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc6357266ad&quot;}" data-wp-interactive="core/image" data-wp-key="69cc6357266ad" class="wp-block-image size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="530" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" data-id="1746" src="https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-1-1024x530.png" alt="" class="wp-image-1746" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-1-1024x530.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-1-300x155.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-1-768x397.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-1.png 1278w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635726bf5&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635726bf5" class="wp-block-image size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="530" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" data-id="1747" src="https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-2-1024x530.png" alt="" class="wp-image-1747" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-2-1024x530.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-2-300x155.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-2-768x397.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-2.png 1278w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc63572719d&quot;}" data-wp-interactive="core/image" data-wp-key="69cc63572719d" class="wp-block-image size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="530" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" data-id="1748" src="https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-3-1024x530.png" alt="" class="wp-image-1748" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-3-1024x530.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-3-300x155.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-3-768x397.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20191111/screenshot-3.png 1278w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>
</figure>
]]></content:encoded>
					
		
		<enclosure url="https://blog.riverforest-wp.info/wp-content/uploads/20191111/child-pages-card.mp4" length="13135111" type="video/mp4" />

			</item>
	</channel>
</rss>
