WordPress get link specific information tags: get_ bookmark_ field

WordPress template tag get_ bookmark_ Field gets the specified information of the specified link, such as the link name and address of the specified link ID.

get_bookmark_field( string $field, int $bookmark, string $context = 'display' )

Function parameters

$field

String value, null by default

To specify what information to return, refer to get_ The return value part of the bookmark() function.

$bookmark

Integer type, empty by default

Specify a link ID to return information about the link.

$context

String value, default value: display

Equivalent to get_ The $filter parameter of the bookmark() function.

Examples of function usage

<?php echo get_bookmark_field('link_name', 17 ); ?>

Extended reading

get_ bookmark_ The field() function is located in: WP includes/ bookmark.php

Related Tags:

  • get_ bookmark()
  • get_ bookmarks()
  • wp_ list_ bookmarks()
Related Article
WordPress comment date tag: comment_date

WordPress template tags comment_ Date is used to output the date of a comment, usually in a custom comment template. Read more

WordPress comment summary tag: comment_excerpt

WordPress template tags comment_ Excerpt is used to output the summary of comments. The default output is 20 characters. It Read more

WordPress comment time tag: comment_time

WordPress template tags comment_ Time is used to output the publishing time of the current comment, which is the same Read more

WordPress RSS format comment author name tag: comment_author_rss

WordPress template tags comment_ author_ RSS is used to output the comment author name in RSS format, which has no Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image