wp/カテゴリ別記事一覧を表示
目次つくるには
http://pc.casey.jp/archives/153894000
Table of Contents Generator
◦インストールは ylsy_toc.php をプラグインディレクトリにアップロードして有効化
◦記事中に <!–TOC–> を入れると置換される
◦表示を変えたいときは /wp-content/plugins/ylsy_toc.php を編集する
◦サイドバーなどテンプレートファイルに入れるときは <?php echo $post->post_toc; ?>
◦一番使われているようだが公式から検索&インストールはできないようだ
◦ダウンロード:Table of Contents Generator WordPress? plugin | SYP
◦参考:hnタグから目次を作成するWordPress?プラグイン「Table of Contents Generator」
◦参考:power source* » WP plugin[up]: 目次生成 – Table of Contents Generator をアップグレード
◦参考:Table of Contents Generator:自動で見出しを作成 » WordPress?メモ
◦参考:Table of Contents Generator WordPress? plugin(目次自動生成) | teralog
◦参考:記事の目次を表示するプラグインを入れてみた | HappyQuality?
記事中に表示した例
テンプレートファイル(single.php)とCSS ファイル(style.css) に追記した表示例
ソースを表示印刷SyntaxHighlighter?について
1 // single.php
2 echo $post->post_toc;
3 echo '<br style="clear:both;">';
ソースを表示印刷SyntaxHighlighter?について
1 /*style.css*/
2 .toc {
3 border: #ccc solid 1px;
4 float: left;
5 font-size: .9em;
6 margin: 0 0 5px 12px;
7 width: 98%;
8 clear:both;
9 }
10 .toc ol {
11 margin: 5px;
12 padding-left: 30px;
13 }
サイドバーに表示した例
ソースを表示印刷SyntaxHighlighter?について
1 // sidebar.php
2 if (is_single() || is_page()) {
3 echo '<li id="text-9">';
4 echo '<h4 style="cursor: n-resize;">目次</h4>';
5 echo $post->post_toc;
6 echo '</li>';
7 }
ソースを表示印刷SyntaxHighlighter?について
1 .toc {}
2 .toc ol {}
3 .toc ol li {
4 list-style-image: none;
5 list-style-type: circle;
6 }
WP-TOC
◦記事中に [toc depth="2] などを入れると置換される
◦ダウンロード:WordPress? › WP-TOC « WordPress? Plugins
TOC For WordPress?
◦記事中に [toc] を入れると置換される(Master Post Advert にタグを書いたら変換してくれた)
Table Of Content
◦記事中に[table-of-content][/table-of-content](その他ショートコード用オプションあり)などを入れると置換される
◦似ているが TableOfContents? ではない
jQuery Table of Contents
◦ダウンロード:WordPress? › jQuery Table of Contents « WordPress? Plugins
◦参考:目次を自動生成するプラグインWordPress? jQuery Table of Contents plugin – 携帯ドロップシッピングで月商100万円稼ぐ!
◦参考:WordPress? jQuery Table of Contents plugin | Ted Carnahan
Tiny Table Of Content – TinyTOC
◦よくわからなかった
Table of Contents Creator
◦記事中に <–toc-creator–> を入れると置換され・・・ない!?
◦サイトマップ(人間向け)もつくってくれる
さらに探す
◦WordPress? › toc « Tags « WordPress? Plugins
JavaScript? で実装する
◦h1からh6の見出しを抽出し、ページ内リンク(toc)を自動生成するjavascript|1bit::memo
関連記事
◦WordPress? 自動バックアッププラグイン
◦WordPress? 携帯端末対応プラグイン
◦WordPress? 高機能アクセス解析プラグイン
◦[WordPress?] ウィジットでPHP を実行
◦[WordPress?] 関連記事を自動的に表示するプラグイン
◦WordPress? 標準機能だけで営業日カレンダー表示
◦WordPress? FAQプラグイン
この記事を読んだ人は、こんな記事にも興味をもっています
◦WordPress? 高機能アクセス解析プラグイン
◦[WordPress?] 関連記事を自動的に表示するプラグイン
◦WordPress?「続きを読む」(moreタグ)関連プラグイン
◦[WordPress?] ビジュアルエディタにTinyMCE を使う
◦[WordPress?] 全記事の置換を行う – Search Regex
◦WordPress? つぶやくボタンの設置