<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。 - Cocoonテーマに関する質問				            </title>
            <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Fri, 15 May 2026 17:17:45 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63779</link>
                        <pubDate>Fri, 12 Aug 2022 11:09:21 +0000</pubDate>
                        <description><![CDATA[@chu-ya 様
ご確認いただきましてありがとうございます！
ご丁寧に補足の説明も追加していただき大変助かります！こちらを参考に色々とカスタムできればと思います。
この度は本当にありがとうございました。心より感謝申し上げます。]]></description>
                        <content:encoded><![CDATA[<p>@chu-ya 様</p>
<p>ご確認いただきましてありがとうございます！</p>
<p>ご丁寧に補足の説明も追加していただき大変助かります！<br />こちらを参考に色々とカスタムできればと思います。</p>
<p>この度は本当にありがとうございました。<br />心より感謝申し上げます。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>いずな</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63779</guid>
                    </item>
				                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63778</link>
                        <pubDate>Fri, 12 Aug 2022 10:44:04 +0000</pubDate>
                        <description><![CDATA[@izuna さん
「解決済み」となっています。
●補足
先も書きましたが、Cocoonのnavi_listを流用しています。この為、コード中の以下(63行目)の値を変更する事でカードの形を変える事ができます。
&#039;type&#039;=&gt;&#039;2&#039;

default：通常のリスト
border_partition(or 1)：カードの上下に区切り線を入れる


bo...]]></description>
                        <content:encoded><![CDATA[<p>@izuna さん</p>
<p>「解決済み」となっています。</p>
<p><strong>●補足<br /></strong></p>
<p>先も書きましたが、Cocoonのnavi_listを流用しています。<br />この為、コード中の以下(63行目)の値を変更する事でカードの形を変える事ができます。</p>
<p>'type'=&gt;'<span style="color: #ff0000">2</span>'</p>
<ul>
<li>default：通常のリスト</li>
<li>border_partition(or 1)：カードの上下に区切り線を入れる</li>
<li>
<div>
<div><span style="color: #ff0000">border_square(or 2)：カードに枠線を表示する</span></div>
</div>
</li>
<li>large_thumb：大きなサムネイル表示</li>
<li>large_thumb_on：大きなサムネイルにタイトルを重ねる</li>
</ul>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63778</guid>
                    </item>
				                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63777</link>
                        <pubDate>Fri, 12 Aug 2022 10:37:19 +0000</pubDate>
                        <description><![CDATA[@chu-ya 様
お世話になっております！「解決済み」ボタンを押したつもりですが、反映されてないでしょうか？こちらの画面ではグリーンのチェックマークが見えるのでおそらく反映されたかと思います。すみませんが、よろしくお願いします！]]></description>
                        <content:encoded><![CDATA[<p>@chu-ya 様</p>
<p>お世話になっております！<br />「解決済み」ボタンを押したつもりですが、反映されてないでしょうか？<br />こちらの画面ではグリーンのチェックマークが見えるのでおそらく反映されたかと思います。<br />すみませんが、よろしくお願いします！</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>いずな</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63777</guid>
                    </item>
				                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63776</link>
                        <pubDate>Fri, 12 Aug 2022 10:27:55 +0000</pubDate>
                        <description><![CDATA[@izuna さん
解決されて良かったです。恐れ入りますが、「解決済み」リンクをクリックして頂けると、作者わいひらさんの負担も減り助かります。]]></description>
                        <content:encoded><![CDATA[<p>@izuna さん</p>
<p>解決されて良かったです。<br /><span>恐れ入りますが、「解決済み」リンクをクリックして頂けると、作者わいひらさんの負担も減り助かります。</span></p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63776</guid>
                    </item>
				                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63775</link>
                        <pubDate>Fri, 12 Aug 2022 10:23:06 +0000</pubDate>
                        <description><![CDATA[@chu-ya 様
度々失礼いたします！
再度functions.phpを記入し直したところ、無事エラーが解決され、表示もうまくいきました！こちらの件、解決済みとさせていただきます。
この度は本当にありがとうございました。ご丁寧に教えていただき、感謝申し上げます。また機会がございましたらよろしくお願いします！
&nbsp;d068b692615fae834fb50f72...]]></description>
                        <content:encoded><![CDATA[<p>@chu-ya 様</p>
<p>度々失礼いたします！</p>
<p>再度<span>functions.phpを</span>記入し直したところ、無事エラーが解決され、表示もうまくいきました！<br />こちらの件、解決済みとさせていただきます。</p>
<p>この度は本当にありがとうございました。<br />ご丁寧に教えていただき、感謝申し上げます。<br />また機会がございましたらよろしくお願いします！</p>
<div id="wpfa-30691" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1660299786-d068b692615fae834fb50f726b69c8fb.png" target="_blank" title="d068b692615fae834fb50f726b69c8fb.png"><i class="fas fa-paperclip"></i>&nbsp;d068b692615fae834fb50f726b69c8fb.png</a></div>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>いずな</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63775</guid>
                    </item>
				                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63774</link>
                        <pubDate>Fri, 12 Aug 2022 10:12:05 +0000</pubDate>
                        <description><![CDATA[@izuna さん
コピペしたなら前に意図しないコードが入っている可能性があります。再度、functions.phpを開き直し（前の状態を破棄）、直接入力して貰えますか？]]></description>
                        <content:encoded><![CDATA[<p>@izuna さん</p>
<p>コピペしたなら前に意図しないコードが入っている可能性があります。<br />再度、functions.phpを開き直し（前の状態を破棄）、直接入力して貰えますか？</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63774</guid>
                    </item>
				                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63773</link>
                        <pubDate>Fri, 12 Aug 2022 10:09:55 +0000</pubDate>
                        <description><![CDATA[@chu-ya 様
ご返信ありがとうございます！
コードを追加したのですが、添付画像の通り、以下のエラーが出てしましました。
syntax error, unexpected variable &quot;$html&quot;
自分でも調べてみます。
よろしくお願いします！
&nbsp;f2b47cfa5f3fcd02cc9c5d9bf7c3efba.png]]></description>
                        <content:encoded><![CDATA[<p>@chu-ya 様</p>
<p>ご返信ありがとうございます！</p>
<p>コードを追加したのですが、添付画像の通り、以下のエラーが出てしましました。</p>
<p>syntax error, unexpected variable "$html"</p>
<p>自分でも調べてみます。</p>
<p>よろしくお願いします！</p>
<div id="wpfa-30690" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1660298995-f2b47cfa5f3fcd02cc9c5d9bf7c3efba.png" target="_blank" title="f2b47cfa5f3fcd02cc9c5d9bf7c3efba.png"><i class="fas fa-paperclip"></i>&nbsp;f2b47cfa5f3fcd02cc9c5d9bf7c3efba.png</a></div>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>いずな</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63773</guid>
                    </item>
				                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63772</link>
                        <pubDate>Fri, 12 Aug 2022 09:45:29 +0000</pubDate>
                        <description><![CDATA[@izuna さん
$htmlの期化義が漏れていたので試しに、以下を追加して貰えますか？デバッグモードで細かな確認をしてないのでwarningはあるかと思います。
  $html = null;←これ
  // 投稿取得
  $args = array(]]></description>
                        <content:encoded><![CDATA[<p>@izuna さん</p>
<p>$htmlの期化義が漏れていたので試しに、以下を追加して貰えますか？<br />デバッグモードで細かな確認をしてないのでwarningはあるかと思います。</p>
<pre contenteditable="false">  $html = null;←これ
  // 投稿取得
  $args = array(</pre>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63772</guid>
                    </item>
				                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63770</link>
                        <pubDate>Fri, 12 Aug 2022 09:13:44 +0000</pubDate>
                        <description><![CDATA[@chu-ya 様
ご返信・コードのご提供感謝申し上げます！
早速子テーマのfunctions.phpにコードを追加いたしました。カードの表示は問題ありませんでしたが、エラーメッセージが表示されてしまいました。エラーメッセージは以下の通りです。
Warning: Undefined variable $html in C:\xampp\htdocs\wp_2\wp-con...]]></description>
                        <content:encoded><![CDATA[<p>@chu-ya 様</p>
<p>ご返信・コードのご提供感謝申し上げます！</p>
<p>早速子テーマのfunctions.phpにコードを追加いたしました。<br />カードの表示は問題ありませんでしたが、エラーメッセージが表示されてしまいました。<br />エラーメッセージは以下の通りです。</p>
<p>Warning: Undefined variable $html in C:\xampp\htdocs\wp_2\wp-content\themes\cocoon-child-master\functions.php on line 56</p>
<p>子テーマのfunctions.phpの56行目を確認したところ<br />$html .= get_widget_entry_card_link_tag($atts);<br />というコードが記入されております。</p>
<p>phpに疎くてエラーの修正方法がわからず、大変申し訳ありませんがご教授いただけますと幸いです。<br />よろしくお願いします！</p>
<div id="wpfa-30689" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1660295624-0eff37e9336c849810bf879959195143.png" target="_blank" title="0eff37e9336c849810bf879959195143.png"><i class="fas fa-paperclip"></i>&nbsp;0eff37e9336c849810bf879959195143.png</a></div>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>いずな</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63770</guid>
                    </item>
				                    <item>
                        <title>RE: 固定ページにカテゴリー別に投稿記事を2件ずつ、カテゴリーとタグを含めて表示させたい。</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63758</link>
                        <pubDate>Fri, 12 Aug 2022 06:35:28 +0000</pubDate>
                        <description><![CDATA[@izuna さん
●説明本コードはnavi_listを流用しています。

type=カードに枠線を表示する
bold=記事タイトルを太字

スニペットの部分に、カテゴリー、タグを出力するように改造しています。カテゴリー、タグのclassは親テーマのclassに合わせ、cat-link、tag-linkとしています。ショートコード名(my_list)も含め、必要に応...]]></description>
                        <content:encoded><![CDATA[<p>@izuna さん</p>
<p><strong>●説明</strong><br />本コードはnavi_listを流用しています。</p>
<ul>
<li>type=<span>カードに枠線を表示する</span></li>
<li>bold=<span>記事タイトルを太字</span></li>
</ul>
<p>スニペットの部分に、カテゴリー、タグを出力するように改造しています。<br />カテゴリー、タグのclassは親テーマのclassに合わせ、cat-link、tag-linkとしています。<br />ショートコード名(my_list)も含め、<span style="color: #ff0000">必要に応じ変更</span>して下さい。</p>
<p><strong>●使い方</strong></p>
<blockquote>
<p></p>
</blockquote>
<p>投稿IDは<span style="color: #ff0000">3個以上でも表示</span>できます。<br />必ずカンマで区切って指定して下さい。</p>
<p><strong>●お願い事項</strong><br />恐れ入りますが、解決済みの場合、「解決済み」リンクをクリックをお願いします。</p>
<p><strong>●方法</strong><br />functions.phpに以下のコードを追加します。</p>
<pre contenteditable="false">add_shortcode('my_list', function($atts) {
  extract(shortcode_atts(
    array(
      'id' =&gt; [],
    ), $atts
  ));

  if (!($id)) return '';
  $aryId = explode(',', $id);

  // 投稿取得
  $args = array(
    'posts_per_page'=&gt; -1,
    'orderby'   =&gt; 'post__in',
    'post_type' =&gt; 'post',
    'post__in'  =&gt; $aryId,
  );

  $the_query = new WP_Query($args);

  if ($the_query -&gt; have_posts()) {
    while ($the_query -&gt; have_posts()) : $the_query -&gt; the_post();
      $snippet_text ='';

      // カテゴリー作成
      $categories = get_the_category();
      $snippet_text = '&lt;div class="entry-categories"&gt;';
      foreach ($categories as $category) {
        $snippet_text .= '&lt;span class="cat-link"&gt;' . $category-&gt;name . '&lt;/span&gt;';
      }
      $snippet_text .= '&lt;/div&gt;';

      // タグ作成
      $snippet_text .= '&lt;div class="entry-tags"&gt;';
      $tags = get_the_tags();
      foreach ($tags as $tag) {
        $snippet_text .= '&lt;span class="tag-link"&gt;' . $tag-&gt;name . '&lt;/span&gt;'; 
      }
      $snippet_text .= '&lt;/div&gt;';

      // カード作成
      $atts = array(
        'prefix'  =&gt; WIDGET_NAVI_ENTRY_CARD_PREFIX,
        'title'   =&gt; get_the_title(),
        'url'     =&gt; get_the_permalink(),
        'snippet' =&gt; $snippet_text,
      );
      $html .= get_widget_entry_card_link_tag($atts);
    endwhile;

    // wrap作成
    $atts = array(
      'bold' =&gt; '1',
      'tag'  =&gt; $html,
      'type' =&gt; '2'
    );
    $html = get_navi_card_wrap_tag($atts);
  }

  //グローバル変数復元
  wp_reset_postdata();

  return $html;
});</pre>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%83%bc%e5%88%a5%e3%81%ab%e6%8a%95%e7%a8%bf%e8%a8%98%e4%ba%8b%e3%82%922%e4%bb%b6%e3%81%9a%e3%81%a4%e3%80%81/#post-63758</guid>
                    </item>
							        </channel>
        </rss>
		