Sample
提供: baserCMS公式ガイド
書き方のサンプルです。
目次
見出し2
見出し3
見出し4
リンク
リスト
箇条リスト
- リスト
- リスト
- リスト
番号リスト
- 番号リスト
- 番号リスト
- 番号リスト
定義リスト
- Apple
- Pomaceous fruit of plants of the genus Malus in the family Rosaceae.
- An American computer company.
- Orange
- The fruit of an evergreen tree of the genus Citrus.
- 用語1
- 用語1の説明
- 用語1に関する項目1
- 用語1に関する項目2
- テキストが入ります。テキストが入ります。 改行はこうなります。 改行はこうなります。 改行はこうなります。 改行はこうなります。
- 用語2
-
用語2の説明
- リスト
- リスト
- リスト
- 用語3
-
用語3の説明
- first list item
- second list item code block.
block quote on two lines.
- first list item
- second list item
テーブル
列1 | 列2 | 列3 |
---|---|---|
This | This | This |
column | column | column |
will | will | will |
be | be | be |
left | right | center |
aligned | aligned | aligned |
コードの書き方
preタグで囲めば確実に表示されます。 <?php remove_post_type_support( $post_type, $supports ) ?>
半角スペース4個でも<pre></pre>で囲まれます。
半角スペース4個でも<pre></pre>で囲まれます。
<?php remove_post_type_support( $post_type, $supports ) ?>
説明
指定された投稿タイプについて、特定の機能をサポートを削除します。 ある機能のサポートを削除すると、それに対応して投稿の編集画面からフィールド(エディターやメタボックスなど)が消去されます。 さらに、'revisions' 機能は投稿タイプがリビジョンを保存するかどうかを表します。 また 'comments' 機能はコメント数を投稿の編集画面に表示するかどうかを表します。 通常は、remove_post_type_support() を 'init' アクションフックから呼び出さなければなりません。
使い方
パラメータ
テンプレート:Parameter テンプレート:Parameter
- 'title' (タイトル)
- 'editor' (内容の編集)
- 'author' (作成者)
- 'thumbnail' (アイキャッチ画像)(現在のテーマが 投稿サムネイル をサポートしていること)
- 'excerpt' (抜粋)
- 'trackbacks' (トラックバック送信)
- 'custom-fields' (カスタムフィールド)
- 'comments' (コメントの他、編集画面にコメント数のバルーンを表示する)
- 'revisions' (リビジョンを保存する)
- 'page-attributes' (メニューの順序)(投稿タイプの hierarchical が true であること)
- 'post-formats' (投稿のフォーマットを削除。投稿フォーマットを参照)
用例
抜粋のサポートを削除
この例は投稿('post')の抜粋のサポートを削除します:
add_action( 'init', 'my_custom_init' ); function my_custom_init() { remove_post_type_support( 'post', 'excerpt' ); }
投稿フォーマットのサポートを削除
この例は投稿('post')の投稿フォーマットのサポートを削除します:
add_action( 'init', 'my_remove_post_type_support', 10 ); function my_remove_post_type_support() { remove_post_type_support( 'post', 'post-formats' ); }
変更履歴
- バージョン 3.0 にて導入されました。
ソースファイル
remove_post_type_support() は テンプレート:Trac にあります。
関連資料
テンプレート:Post Type Tags テンプレート:Tag Footer テンプレート:原文en:Function Reference/remove_post_type_support it:Riferimento_funzioni/remove_post_type_support