<?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>
									記事スライダーにも「抜粋文」を表示したい - ご要望				            </title>
            <link>https://users.swell-theme.com/forum/swell-request/%e8%a8%98%e4%ba%8b%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%80%e3%83%bc%e3%81%ab%e3%82%82%e3%80%8c%e6%8a%9c%e7%b2%8b%e6%96%87%e3%80%8d%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/</link>
            <description>SWELLユーザー限定で利用可能な掲示板です。</description>
            <language>ja</language>
            <lastBuildDate>Thu, 11 Jun 2026 10:46:53 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: 記事スライダーにも「抜粋文」を表示したい</title>
                        <link>https://users.swell-theme.com/forum/swell-request/%e8%a8%98%e4%ba%8b%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%80%e3%83%bc%e3%81%ab%e3%82%82%e3%80%8c%e6%8a%9c%e7%b2%8b%e6%96%87%e3%80%8d%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-10158</link>
                        <pubDate>Fri, 07 Jun 2024 00:34:03 +0000</pubDate>
                        <description><![CDATA[投稿者さまと同じようなことを実現したく、子テーマのカスタマイズを行ったためご参考になれば幸いです。
loop_by_slider.php (parts/post_list/loop_by_slider.php)を選んで、以下のコードを追記したらスライダーに抜粋の表示ができました。
---------
&lt;?php
if ( ! defined( &#039;ABSPATH&#039; ...]]></description>
                        <content:encoded><![CDATA[<p>投稿者さまと同じようなことを実現したく、子テーマのカスタマイズを行ったためご参考になれば幸いです。</p>
<p>loop_by_slider.php (parts/post_list/loop_by_slider.php)を選んで、以下のコードを追記したらスライダーに抜粋の表示ができました。</p>
<p>---------</p>
<div>&lt;?php</div>
<div>if ( ! defined( 'ABSPATH' ) ) exit;</div>
<div> </div>
<div>/**</div>
<div> * 記事スライダーの投稿リスト出力テンプレート</div>
<div> */</div>
<div>$query_args  = isset($variable) ? $variable : [];</div>
<div>$thumb_sizes = isset($variable) ? $variable : '';</div>
<div> </div>
<div>// 表示設定</div>
<div>$show_date     = SWELL_Theme::get_setting( 'ps_show_date' );</div>
<div>$show_modified = SWELL_Theme::get_setting( 'ps_show_modified' );</div>
<div>$show_author   = SWELL_Theme::get_setting( 'ps_show_author' );</div>
<div>$cat_pos       = SWELL_Theme::get_setting( 'pickup_cat_pos' );</div>
<div> </div>
<div>// クエリの取得</div>
<div>if ( !empty($query_args) ) {</div>
<div>    $the_query = new WP_Query( apply_filters( 'swell_pickup_post_args', $query_args ) );</div>
<div>} else {</div>
<div>    $the_query = null;</div>
<div>}</div>
<div> </div>
<div>// 表示枚数</div>
<div>$ps_num_sp = SWELL_Theme::get_setting( 'ps_num_sp' );</div>
<div> </div>
<div>?&gt;</div>
<div>&lt;ul class="p-postSlider__postList p-postList swiper-wrapper"&gt;</div>
<div>&lt;?php</div>
<div>if ( $the_query &amp;&amp; $the_query-&gt;have_posts() ) :</div>
<div><span> $ct = 0;</span></div>
<div><span> while ( $the_query-&gt;have_posts() ) :</span></div>
<div><span> $ct++;</span></div>
<div><span> $the_query-&gt;the_post();</span></div>
<div> </div>
<div><span> $post_data = get_post();</span></div>
<div><span> $the_id    = $post_data-&gt;ID;</span></div>
<div><span> $the_title = get_the_title();</span></div>
<div> </div>
<div><span> if ( mb_strwidth( $the_title, 'UTF-8' ) &gt; 120 ) :</span></div>
<div><span> $the_title = mb_strimwidth( $the_title, 0, 120, '...', 'UTF-8' );</span></div>
<div><span> endif;</span></div>
<div>?&gt;</div>
<div><span> &lt;li class="p-postList__item swiper-slide"&gt;</span></div>
<div><span> &lt;a href="&lt;?php the_permalink( $the_id ); ?&gt;" class="p-postList__link"&gt;</span></div>
<div><span> &lt;?php</span></div>
<div><span> SWELL_Theme::get_parts(</span></div>
<div><span> 'parts/post_list/item/thumb',</span></div>
<div><span> </span></div>
<div><span> );</span></div>
<div><span> ?&gt;</span></div>
<div><span> &lt;div class="p-postList__body"&gt;</span></div>
<div><span> &lt;h2 class="p-postList__title"&gt;</span></div>
<div><span> &lt;?=wp_kses( $the_title, SWELL_Theme::$allowed_text_html )?&gt;</span></div>
<div><span> &lt;/h2&gt;</span></div>
<div><span> &lt;div class="p-postList__meta"&gt;</span></div>
<div><span> &lt;?php</span></div>
<div><span> // 日付</span></div>
<div><span> SWELL_Theme::get_parts( 'parts/post_list/item/date',  );</span></div>
<div><span> if ( 'on_title' === $cat_pos ) :</span></div>
<div><span> SWELL_Theme::pluggable_parts( 'post_list_category',  );</span></div>
<div><span> endif;</span></div>
<div> </div>
<div><span> if ( $show_author ) :</span></div>
<div><span> SWELL_Theme::pluggable_parts( 'post_list_author',  );</span></div>
<div><span> endif;</span></div>
<div><span> ?&gt;</span></div>
<div><span> &lt;/div&gt;</span></div>
<div><span> &lt;div class="p-postList__excerpt"&gt;</span></div>
<div><span> &lt;?=wp_kses_post( get_the_excerpt() )?&gt;</span></div>
<div><span> &lt;/div&gt;</span></div>
<div><span> &lt;/div&gt;</span></div>
<div><span> &lt;/a&gt;</span></div>
<div><span> &lt;/li&gt;</span></div>
<div>&lt;?php</div>
<div><span> endwhile;</span></div>
<div><span> wp_reset_postdata();</span></div>
<div>endif;</div>
<div>?&gt;</div>
<div>&lt;/ul&gt;</div>
<div> </div>
<div class="alignright"></div>]]></content:encoded>
						                            <category domain="https://users.swell-theme.com/forum/swell-request/">ご要望</category>                        <dc:creator>tsubasa-swell</dc:creator>
                        <guid isPermaLink="true">https://users.swell-theme.com/forum/swell-request/%e8%a8%98%e4%ba%8b%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%80%e3%83%bc%e3%81%ab%e3%82%82%e3%80%8c%e6%8a%9c%e7%b2%8b%e6%96%87%e3%80%8d%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-10158</guid>
                    </item>
				                    <item>
                        <title>記事スライダーにも「抜粋文」を表示したい</title>
                        <link>https://users.swell-theme.com/forum/swell-request/%e8%a8%98%e4%ba%8b%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%80%e3%83%bc%e3%81%ab%e3%82%82%e3%80%8c%e6%8a%9c%e7%b2%8b%e6%96%87%e3%80%8d%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-2470</link>
                        <pubDate>Thu, 17 Mar 2022 09:35:37 +0000</pubDate>
                        <description><![CDATA[いつもお世話になっております。

「記事一覧リスト」や「投稿リスト」ブロックと同様に、
「記事スライダー」でも「抜粋文」を表示させることは可能でしょうか。
（フックで挿入できればそれでもいいのですが、判りませんでした…）



ご検討のほど、よろしくお願いいたします。]]></description>
                        <content:encoded><![CDATA[<p>いつもお世話になっております。</p>
<p></p>
<p>「記事一覧リスト」や「投稿リスト」ブロックと同様に、</p>
<p><strong>「記事スライダー」</strong>でも<strong>「抜粋文」</strong>を表示させることは可能でしょうか。</p>
<p>（フックで挿入できればそれでもいいのですが、判りませんでした…）</p>
<p></p>
681
<p></p>
<p>ご検討のほど、よろしくお願いいたします。</p>
<p></p>
<p></p>]]></content:encoded>
						                            <category domain="https://users.swell-theme.com/forum/swell-request/">ご要望</category>                        <dc:creator>yamowo</dc:creator>
                        <guid isPermaLink="true">https://users.swell-theme.com/forum/swell-request/%e8%a8%98%e4%ba%8b%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%80%e3%83%bc%e3%81%ab%e3%82%82%e3%80%8c%e6%8a%9c%e7%b2%8b%e6%96%87%e3%80%8d%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84/#post-2470</guid>
                    </item>
							        </channel>
        </rss>
		