permalink_anchor

Sponsored Link

パーマリンクのアンカーの識別子あるいは、記事にID(

Outputs a permalink anchor identifier or id (<?php permalink_anchor( $type ); ?>

permalink_anchorのパラメーター

$type

(string) 出力するアンカーのタイプです。有効な値は:

(string) Type of anchor to output. Valid values are:

  • ‘id’ – アンカーは、数値の記事IDと同等です。これがデフォルトです。
  • ‘title’ – アンカーは記事名、すなわち記事スラッグと同等です
  • ‘id’ – Anchor equals numeric post ID. This is the default.
  • ‘title’ – Anchor equals postname, i.e. post slug.
  • ‘id’ – Anchor equals numeric post ID. This is the default.
  • ‘title’ – Anchor equals postname, i.e. post slug.

記事のタイトルの横にパーマリンクアンカーが挿入されます。

Inserts the permalink anchor next to a post’s title.

<h3><?php permalink_anchor(); ?><?php the_title(); ?></h3>

変更ログ

Since: 0.71

ソースファイル

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

permalink_anchor() is located in wp-includes/link-template.php.

関連テンプレートタグ

get_permalink, the_permalink, post_permalink, permalink_anchor, permalink_single_rss

Sponsored Link