<?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>
									【目次機能】h2 見出しタグについて - 要望				            </title>
            <link>https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Tue, 10 Mar 2026 06:52:34 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: 【目次機能】h2 見出しタグについて</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-27063</link>
                        <pubDate>Sat, 25 Jan 2020 14:31:32 +0000</pubDate>
                        <description><![CDATA[リンクを貼り忘れて行ったので貼っておきます]]></description>
                        <content:encoded><![CDATA[<p>リンクを貼り忘れて行ったので貼っておきます。<br />https://wp-cocoon.com/insertion-heading-regexp/</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-27063</guid>
                    </item>
				                    <item>
                        <title>RE: 【目次機能】h2 見出しタグについて</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-27054</link>
                        <pubDate>Sat, 25 Jan 2020 08:43:08 +0000</pubDate>
                        <description><![CDATA[@yhira仕事の多忙からお返事遅れまして申し訳ありません。関数及び記述方法調べて行おうとしたのですが、2.0.6 にて対応記述方法が記載されていましたので、その記述で表示を確認してみます。どうもありがとうございます。]]></description>
                        <content:encoded><![CDATA[<p>@yhira</p><p>仕事の多忙からお返事遅れまして申し訳ありません。</p><p>関数及び記述方法調べて行おうとしたのですが、<br />2.0.6 にて対応記述方法が記載されていましたので、その記述で表示を確認してみます。</p><p>どうもありがとうございます。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>がちょぴん</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-27054</guid>
                    </item>
				                    <item>
                        <title>RE: 【目次機能】h2 見出しタグについて</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-26772</link>
                        <pubDate>Sat, 18 Jan 2020 16:54:19 +0000</pubDate>
                        <description><![CDATA[それだと、コードとして全く意味を成していません。add_filter関数を用いてinsertion_heading_regexpをフックして関数の戻り値に正規表現を返す必要があります。]]></description>
                        <content:encoded><![CDATA[<p>それだと、コードとして全く意味を成していません。<br /><a href="https://wpdocs.osdn.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/add_filter">add_filter</a>関数を用いてinsertion_heading_regexpをフックして関数の戻り値に正規表現を返す必要があります。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-26772</guid>
                    </item>
				                    <item>
                        <title>RE: 【目次機能】h2 見出しタグについて</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-26766</link>
                        <pubDate>Sat, 18 Jan 2020 12:06:25 +0000</pubDate>
                        <description><![CDATA[大変遅くなってしまいました。下記のコードを記述し、ブラウザーキャッシュ・プラグインキャッシュのクリアし、ブラウザーの再更新(強制更新含む)しましたが表示されないです。テーマ自体の「目次」機能を表示する設定はONになっている状態です。何か間違えている箇所等ありましたら、教えていただけますと幸いです。if ( !defined(&#039;H3_REG&#039;) )define(&#039;H3_REG&#039;,...]]></description>
                        <content:encoded><![CDATA[<p>大変遅くなってしまいました。</p><p>下記のコードを記述し、<br />ブラウザーキャッシュ・プラグインキャッシュのクリアし、<br />ブラウザーの再更新(強制更新含む)しましたが表示されないです。</p><p>テーマ自体の「目次」機能を表示する設定はONになっている状態です。<br />何か間違えている箇所等ありましたら、教えていただけますと幸いです。</p><pre>if ( !defined('H3_REG') )<br />define('H3_REG', apply_filters('insertion_heading_regexp', '/&lt;h3/i'));//H3見出しのパターン<br /><br />//本文中にH3見出しが最初に含まれている箇所を返す（含まれない場合はnullを返す）<br />//H3-H6しか使っていない場合は、h3部分を変更してください<br />if ( !function_exists( 'get_h3_included_in_body' ) ):<br />function get_h3_included_in_body( $the_content ){<br />if ( preg_match( H3_REG, $the_content, $h3results )) {//H3見出しが本文中にあるかどうか<br />return $h3results;<br />}<br />}<br />endif;</pre>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>がちょぴん</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-26766</guid>
                    </item>
				                    <item>
                        <title>RE: 【目次機能】h2 見出しタグについて</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-26594</link>
                        <pubDate>Mon, 13 Jan 2020 10:58:41 +0000</pubDate>
                        <description><![CDATA[申し訳ないですが、かなりニッチな機能となるため、機能化まではしないと思います。ですのでカスタマイズで対応していただければと思います。ただ、子テーマのfunctions.phpで手軽にカスタマイズするために、見出しの判別正規表現を変更できるように、フックを追加してアップしておきました。-----------------------------------------------]]></description>
                        <content:encoded><![CDATA[<p>申し訳ないですが、かなりニッチな機能となるため、機能化まではしないと思います。<br />ですのでカスタマイズで対応していただければと思います。<br />ただ、子テーマのfunctions.phpで手軽にカスタマイズするために、見出しの判別正規表現を変更できるように、フックを追加してアップしておきました。<br />------------------------------------------------<br />https://github.com/yhira/cocoon<br />最新ファイルをダウンロードする場合は、上記ページのダウンロードボタンからzipファイルをダウンロードしてください。<br />https://wp-cocoon.com/wp-content/uploads/2019/01/github-zip.png<br />FTPでのアップデート方法はこちら。<br />https://wp-cocoon.com/ftp-update/<br />------------------------------------------------<br />以下のinsertion_heading_regexpフックで、H3見出しを判別する正規表現に変更することで、カスタマイズ出来るかと思います。<br />https://github.com/yhira/cocoon/commit/5a0036d932d5bd67d334c14182f4dfb406ba7d12</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-26594</guid>
                    </item>
				                    <item>
                        <title>【目次機能】h2 見出しタグについて</title>
                        <link>https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-26558</link>
                        <pubDate>Sat, 11 Jan 2020 12:34:46 +0000</pubDate>
                        <description><![CDATA[【要望】「Cocoon」の目次機能について、h2タグを検出して目次が表示されるようになっていますが、h3タグでも目次機能が表示されるようにしてほしいです。【理由】見出しタグの考えは人それぞれ異なります。例えば、h1→ブログタイトル h2→投稿内の見出し or 記事タイトル h3→サイドバーのタイトル等。私の場合は、h1→ブログタイトル h2→サブタイトル(キャッチフレーズ) h...]]></description>
                        <content:encoded><![CDATA[<p>【要望】<br />「Cocoon」の目次機能について、<br />h2タグを検出して目次が表示されるようになっていますが、<br />h3タグでも目次機能が表示されるようにしてほしいです。</p><p>【理由】<br />見出しタグの考えは人それぞれ異なります。<br />例えば、h1→ブログタイトル h2→投稿内の見出し or 記事タイトル h3→サイドバーのタイトル等。<br />私の場合は、h1→ブログタイトル h2→サブタイトル(キャッチフレーズ) h3→見出しタグ or 記事タイトルでルール化しています。</p><p>置換プラグイン利用してトラブルは避けたい事もあり、人それぞれ考えが異なる事から上記の要望を導入してほしいと強く願っています。</p><p>前向きなご検討宜しくお願いします。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/demands/">要望</category>                        <dc:creator>がちょぴん</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/demands/%e3%80%90%e7%9b%ae%e6%ac%a1%e6%a9%9f%e8%83%bd%e3%80%91h2-%e8%a6%8b%e5%87%ba%e3%81%97%e3%82%bf%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-26558</guid>
                    </item>
							        </channel>
        </rss>
		