get_extended

Sponsored Link

Sponsored Link

で拡張されたエントリー情報を取得します。

‘more’単語の後と2番目ダッシュの前にベースがあってはいけません。
‘more’単語の後に空白(複数可)あるいはテキストがありますが、参照されません。

返される配列は、’main’と’extended’キーです。

メインは、

<code><!--more--></code>

の前にテキストがあります。’extended’キーは、

<code><!--more--></code>

コメントの後に内容を持っています。

Get extended entry info (

<!--more-->

).

There should not be any space after the second dash and before the word ‘more’. There can be text or space(s) after the word ‘more’, but won’t be referenced.

The returned array has ‘main’ and ‘extended’ keys. Main has the text before the

<code><!--more--></code>

. The ‘extended’ key has the content after the

<code><!--more--></code>

comment.

get_extendedのファンクションタグ使用方法

<?php get_extended( $post ) ?>

get_extendedのパラメーター

$post

(string) (required)投稿内容です。
Default: None

(string) (required) Post content.
Default: None

戻り値

(array) (‘extended’)の前(‘main’)と後の投稿

(array)
Post before (‘main’) and after (‘extended’).

変更ログ

Since: 1.0.0

ソースファイル

get_extended()は、wp-includes/post.php内に位置しています。

get_extended() is located in wp-includes/post.php.

Sponsored Link