{"id":203688,"date":"2011-08-03T08:00:00","date_gmt":"2011-08-03T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/wp-biographia\/"},"modified":"2020-12-30T18:23:00","modified_gmt":"2020-12-30T18:23:00","slug":"wp-biographia","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/wp-biographia\/","title":{"rendered":"WP Biographia"},"content":{"rendered":"<p>This plugin allows you to add a customisable biography to posts, to RSS feeds, to pages, to archives and to each post on your blog\u2019s landing page as well as via a widget in your sidebar. It integrates out of the box with the information that can be provided in each user\u2019s profile and supports custom post types. Display of the Biography Box can be hidden on a global or per user basis for posts, pages and custom post types as well as on a per category basis.<\/p>\n<p>Settings and options include:<\/p>\n<ol>\n<li>Choose when to display a Biography Box; on the front page, in archives, on individual posts, pages, or any other custom post type and in RSS feeds.<\/li>\n<li>Choose the border style and background colour of the Biography Box<\/li>\n<li>Choose the amount of user profile information displayed in the Biography Box<\/li>\n<li>Choose the avatar image size<\/li>\n<li>Choose to display the Biography Box at the top or the bottom of content (universally)<\/li>\n<li>Choose to hide the display of the Biography Box for pages, posts and posts\/pages on a per user basis<\/li>\n<li>Choose whether to display the Biography Box in the sidebar of your blog.<\/li>\n<\/ol>\n<p>The plugin expands and enhances the Contact Info section of your user profile, adding support for Twitter, Facebook, LinkedIn, Google+, Delicious, Flickr, Picasa, Vimeo, YouTube and Reddit profile links as well as Yahoo! Messenger, AIM, Windows Live Messenger and Jabber\/Google Talk instant messaging profiles. Your Contact Info links can then be displayed as part of the Biography Box, either as plain text links or as icon links. Further contact links can easily be added to the Biography Box by using the <code>wp_biographia_contact_info<\/code> and <code>wp_biographia_link_items<\/code> filters.<\/p>\n<p>The position of the Biography Box can be controlled by the plugin\u2019s supported settings and options, or manually via the plugin\u2019s shortcode (<code>[wp_biographia]<\/code>) (see the <em>Shortcode Support And Usage<\/em> section for more information) or via template tags in your theme\u2019s template files (see the <em>Template Tags<\/em> section for more information).<\/p>\n<p>The position and content of the Biography Box, including adding support for new contact links, changing the content of the Biography Box when displayed via the shortcode, the format of the contact links and the overall format of the Biography Box can be modified by the plugin\u2019s filters. See the <em>Filter Support And Usage<\/em> section for more information.<\/p>\n<p>The plugin also supports displaying a reduced version of the Biography Box via a sidebar widget and provides a shorter, more terse, biography in the user\u2019s Profile to prevent the full length biography text taking up too much space on the sidebar.<\/p>\n<h3>Shortcode Support And Usage<\/h3>\n<p>WP Biographia supports a single shortcode, <code>[wp_biographia]<\/code>. Adding this shortcode to the content of a post or page or into a theme template as content, expands the shortcode and replaces it with a Biography Box.<\/p>\n<p>The shortcode also supports multiple <em>attributes<\/em> which allow you to customise the way in which the shortcode is expanded into the Biography Box:<\/p>\n<ul>\n<li>the <code>mode<\/code> attribute<\/li>\n<li>the <code>user<\/code> attribute<\/li>\n<li>the <code>author<\/code> attribute <em>(deprecated)<\/em><\/li>\n<li>the <code>role<\/code> attribute<\/li>\n<li>the <code>order<\/code> attribute<\/li>\n<li>the <code>prefix<\/code> attribute<\/li>\n<li>the <code>name<\/code> attribute<\/li>\n<li>the <code>type<\/code> attribute<\/li>\n<\/ul>\n<h4>The \u201cmode\u201d Attribute<\/h4>\n<p>In <code>raw<\/code> mode, which is the default (specified as <code>[wp_biographia mode=\"raw\"]<\/code> or simply as <code>[wp_biographia]<\/code>), the plugin inserts the Biography Box in <em>you\u2019ve asked for it, you\u2019ve got it<\/em> mode.<\/p>\n<p>Or to put it another way, the plugin will honour the settings that you specify under <em>Dashboard \/ Settings\/ WP Biographia<\/em> for <em>Biography Box Style Settings<\/em> and for <em>Biography Box Content Settings<\/em> but will ignore the <em>Biography Box Display Settings<\/em> and <em>Biography Box Per User Settings<\/em>.<\/p>\n<p>In <code>configured<\/code> mode, specified as <code>[wp_biographia mode=\"configured\"]<\/code>, the plugin inserts the Biography Box and will honour all the settings under <em>Dashboard \/ Settings \/ WP Biographia<\/em> with the exception of <em>Display On Front Page<\/em>, <em>Display On Individual Post<\/em>, <em>Display On Post Archives<\/em> and <em>Display On Individual Pages<\/em>, as well as their equivalents for any custom post types you may have created.<\/p>\n<p>The thinking behind this is that you probably want to honour post or page exclusions and per user exclusions, but by using the shortcode in your posts, you want to be in control of how and where the Biography Box is displayed.<\/p>\n<h4>The \u201cuser\u201d Attribute<\/h4>\n<p>If the <code>user<\/code> attribute is omitted, which is the default, the shortcode assumes it\u2019s being used within the <a href=\"https:\/\/codex.wordpress.org\/The_Loop\" rel=\"nofollow ugc\">WordPress Loop<\/a> and will display the Biography Box once for the current post\u2019s, page\u2019s or custom post type\u2019s user.<\/p>\n<p>Specifying a user\u2019s login name as the <code>user<\/code> attribute overrides this behaviour and allows multi-user sites to use the plugin to create a <em>contributors<\/em> page, where you use the shortcode as <code>[wp_biographia user=\"login-name\"]<\/code> once for each of your site\u2019s users that you want to appear, replacing <code>\"login-name\"<\/code> with a valid login name for one of your users.<\/p>\n<p>You call also use the <code>user<\/code> attribute in <em>wildcard<\/em> mode, specifying the user\u2019s login name as <code>*<\/code> as <code>[wp_biographia user=\"*\"]<\/code>; this will then loop over all of the users that have logins on your site, displaying the Biography Box once for each user, ordered alphabetically by login name.<\/p>\n<p>Specifying an invalid login name (<code>[wp_biographia user=\"idontexist\"]<\/code>) will result in no Biography Box being displayed. Specifying an empty login name (<code>[wp_biographia user=\"\"]<\/code>) will cause the <code>user<\/code> attribute to be ignored and may result in undefined behaviour, such as a partially populated Biography Box being displayed as the shortcode is being used outside of the Loop and thus no user information is made available to the plugin by WordPress.<\/p>\n<h4>The \u201cauthor\u201d Attribute<\/h4>\n<p>The <code>author<\/code> attribute is now deprecated in favour of the <code>user<\/code> attribute introduced in v3.2.0 of the plugin. If the <code>author<\/code> attribute is used and no <code>user<\/code> attribute is present, the <code>author<\/code> attribute will act in the same way as the <code>user<\/code> attribute, described above. If both the <code>user<\/code> and <code>author<\/code> attributes are present, the <code>author<\/code> attribute will be ignored in favour of the <code>user<\/code> attribute.<\/p>\n<p>In other words, if you use the shortcode and supply both the <code>author<\/code> and <code>user<\/code> attributes, such as <code>[wp_biographia author=\"foo\" user=\"bar\"]<\/code>, the Biography Box will be displayed for the user <code>bar<\/code>, not the user <code>foo<\/code>. Likewise, <code>[wp_biographia user=\"*\" author=\"foo\"]<\/code> will display the Biography Box in <em>wildcard<\/em> mode, not for the user <code>foo<\/code>.<\/p>\n<p>Support for the <code>author<\/code> attribute will be likely be removed in a future release of the plugin to avoid confusion over the <code>author<\/code> and <code>user<\/code> attributes.<\/p>\n<h4>The \u201crole\u201d Attribute<\/h4>\n<p>Valid only when used in conjunction with the <code>user<\/code> attribute in <em>wildcard<\/em> mode, the <code>role<\/code> attribute allows you to filter the users that have user accounts on your blog according to their <a href=\"https:\/\/codex.wordpress.org\/Roles_and_Capabilities\" rel=\"nofollow ugc\">WordPress Role<\/a>. The <code>role<\/code> attribute takes one or more comma separated arguments which define the WordPress role(s); at the time of writing, these can be one of:<\/p>\n<ul>\n<li><code>administrator<\/code><\/li>\n<li><code>editor<\/code><\/li>\n<li><code>author<\/code><\/li>\n<li><code>contributor<\/code><\/li>\n<li><code>subscriber<\/code><\/li>\n<\/ul>\n<p>For example, if you want to display the Biography Box for all users of your blog who have a role of <code>author<\/code> you can use the <code>role<\/code> attribute plus the <code>author<\/code> attribute in <em>wildcard<\/em> mode to do this, along the lines of <code>[wp_biographia user=\"*\" role=\"author\"]<\/code>. If you want to display the Biography Box for all users with a role of <code>author<\/code> or <code>contributor<\/code>, you can specify both roles, along the lines of <code>[wp_biographia user=\"*\" role=\"author,contributor\"]<\/code>.<\/p>\n<p>Specifying an invalid role (<code>[wp_biographia user=\"*\" role=\"foo\"])<\/code> will result in no Biography Box being displayed. Specifying the <code>role<\/code> attribute without the <code>user<\/code> attribute in <em>wildcard<\/em> mode will have no effect.<\/p>\n<h4>The \u201corder\u201d Attribute<\/h4>\n<p>Valid only when used in conjunction with the <code>user<\/code> attribute in <em>wildcard<\/em> mode, the <code>order<\/code> attribute allows you to specify the display order for the users that have user accounts on your blog. The <code>order<\/code> attribute takes a single argument which defines the sorting order; at the time of writing, this can be one of:<\/p>\n<ul>\n<li><code>account-name<\/code> <em>(the default)<\/em><\/li>\n<li><code>first-name<\/code><\/li>\n<li><code>last-name<\/code><\/li>\n<li><code>nickname<\/code><\/li>\n<li><code>display-name<\/code><\/li>\n<li><code>login-id<\/code><\/li>\n<\/ul>\n<p>For example, if you want to display the Biography Box for all users of your blog ordered according to their last name you can use the <code>order<\/code> attribute plus the <code>author<\/code> attribute in <em>wildcard<\/em> mode to do this, along the lines of <code>[wp_biographia user=\"*\" order=\"last-name\"]<\/code>.<\/p>\n<p>Specifying an invalid role (<code>[wp_biographia user=\"*\" order=\"foo\"])<\/code> will result in the default account name sort order being used. Specifying the <code>order<\/code> attribute without the <code>user<\/code> attribute in <em>wildcard<\/em> mode will have no effect.<\/p>\n<p>It\u2019s important to note that the in order to successfully sort by <code>first-name<\/code> or by <code>last-name<\/code>, the <em>First Name<\/em> and\/or <em>Last Name<\/em> fields must be populated in each user\u2019s Profile; by default, these fields are not populated during the creation of a user\u2019s WordPress account. The sorting of the user accounts when the <code>order<\/code> attribute is specified uses <a href=\"http:\/\/sourcefrog.net\/projects\/natsort\/\" rel=\"nofollow ugc\"><em>natural order string comparison<\/em><\/a>, which means than an empty <em>First Name<\/em> or <em>Last Name<\/em> will appear <strong>before<\/strong> a <em>First Name<\/em> or <em>Last Name<\/em> which actually contains a value. If your WordPress site doesn\u2019t have these name fields populated in your user\u2019s Profiles, you may not see the sorting results you expect.<\/p>\n<h4>The \u201cprefix\u201d Attribute<\/h4>\n<p>If the <code>prefix<\/code> attribute is omitted, which is the default, the Biography Box will be displayed with <em>Biography Prefix<\/em> text configured in <em>Settings\/ WP Biographuia \/ Biography Box Content Settings<\/em> before the user\u2019s name. This can be overridden by using the <code>prefix<\/code> attribute, along the lines of <code>[wp_biographia prefix=\"All About\"]<\/code>.<\/p>\n<h4>The \u201cname\u201d Attribute<\/h4>\n<p>If the <code>name<\/code> attribute is omitted, which is the default, the Biography Box will be displayed with the user\u2019s name as configured by <em>User\u2019s Name<\/em> in <em>Settings \/ WP Biographia \/Biography Box Content Settings<\/em>. This can be overriden by supplying one of the following for the <code>name<\/code> attribute\u2019s argument:<\/p>\n<ul>\n<li><code>account-name<\/code><\/li>\n<li><code>first-last-name<\/code><\/li>\n<li><code>nickname<\/code><\/li>\n<li><code>display-name<\/code><\/li>\n<li><code>none<\/code><\/li>\n<\/ul>\n<h4>The \u201ctype\u201d Attribute<\/h4>\n<p>If the <code>type<\/code> attribute is omitted, which is the default, the Biography Box will be displayed with the user\u2019s full biography text, taken from the <em>Biographical Info<\/em> field in the user\u2019s profile. If the <code>type<\/code> attribute is specified with a value of <code>full<\/code>, this is equivalent to the default behaviour. If the <code>type<\/code> attribute is specified with a value of <code>excerpt<\/code>, the <em>Biographical Excerpt<\/em> field in the user\u2019s profile will be used instead, providing the user has filled out this field in their profile. Specifying an invalid <code>type<\/code> attribute value (<code>[wp_biographia type=\"foo\"]<\/code>) will result in the default behaviour of the full biography being used.<\/p>\n<h3>Filter Support And Usage<\/h3>\n<p>WP Biographia supports multiple filters, which are described in more detail below. The plugin\u2019s filters allow you to:<\/p>\n<ul>\n<li>change the default set of installation settings and options at plugin activation time<\/li>\n<li>modify and\/or enhance the set of contact information fields the plugin adds to the user\u2019s profile<\/li>\n<li>modify and\/or enhance the contact links that are added to the Biography Box by the plugin<\/li>\n<li>modify the position of the Biography Box to before or after the post content returned by <code>the_content()<\/code> and\/or <code>the_excerpt()<\/code><\/li>\n<li>hide the display of the Biography Box entirely under user-defined circumstances<\/li>\n<li>modify and\/or enhance the Biography Box that is produced by the <code>[wp_biographia]<\/code> shortcode<\/li>\n<li>modify and\/or enhance the format and content of the contact links that are added to the Biography Box by the plugin<\/li>\n<li>modify and\/or enhance the Biography Box that is produced for an RSS feed<\/li>\n<li>modify and\/or enhance the entirety of the Biography Box<\/li>\n<\/ul>\n<h4>wp_biographia_default_settings<\/h4>\n<p>Applied to the default set of plugin settings and options. Note that this filter is called once, upon plugin activation, when there are no WP Biographia settings\/options existing in the database.<\/p>\n<p><em>Example:<\/em> Add the date and time that the plugin was first activated<\/p>\n<pre><code>add_filter ('wp_biographia_default_settings', 'add_activation_timestamp');\n\nfunction add_activation_timestamp ($options) {\n    \/\/ options = array (option name => option value)\n    $options['plugin_activation_timestamp'] = date (DATE_ATOM);\n\n    return $options;\n}\n<\/code><\/pre>\n<h4>wp_biographia_contact_info<\/h4>\n<p>Applied to the default set of contact information fields that are added to an user\u2019s profile by the plugin. Note that in order to add and display a new contact link to the Biography Box, the contact link must be added to the value returned by the <code>wp_biographia_link_items<\/code> filter as well as the value returned by this filter.<\/p>\n<p><em>Example:<\/em> Add Pinterest as a supported contact information field<\/p>\n<pre><code>add_filter ('wp_biographia_contact_info', 'add_pinterest_support');\n\nfunction add_pinterest_support ($contacts) {\n    \/\/ contacts = array (field => array (field => field-name, contactmethod => description))\n    $contacts['pinterest'] = array (\n        'field' => 'pinterest',\n        'contactmethod' => __('Pinterest')\n    );\n\n    return $contacts;\n}\n<\/code><\/pre>\n<h4>wp_biographia_link_items<\/h4>\n<p>Applied to the default set of contact links that are added to the Biography Box by the plugin. Note that in order to add and display a new contact link, the contact information field must be added to the value returned by the <code>wp_biographia_contact_info<\/code> filter as well as the value returned by this filter. Note that <code>$icon_dir_url<\/code> will by default contain the URL of the images directory within the plugin directory, which will look something like <code>\/wp-content\/plugins\/wp-biographia\/images\/<\/code> (the trailing slash is important). If an alternate icon directory has been specified in the plugin\u2019s settings and options, then <code>$icon_dir_url<\/code> will contain this alternate, configured, directory URL. If the icon you want to add for a new contact link doesn\u2019t reside in the directory URL mentioned previously, you\u2019ll need to set <code>$icon_dir_url<\/code> to point to your own custom location.<\/p>\n<p><em>Example:<\/em> Add Pinterest as a supported contact link in the Biography Box<\/p>\n<pre><code>add_filter ('wp_biographia_link_items', 'add_pinterest_link', 2);\n\nfunction add_pinterest_link ($links, $icon_dir_url) {\n    \/\/ links = array (field => array (link_title => title, link_text => text, link_icon => URL)\n    $links['pinterest'] = array (\n        'link_title' => __('Pinterest'),\n        'link_text' => __('Pinterest'),\n        'link_icon' => $icon_dir_url . 'pinterest.png'\n        );\n\n        return $links;\n}\n<\/code><\/pre>\n<h4>wp_biographia_pattern<\/h4>\n<p>Applied to the format string used to position the Biography Box before the post content or after the post content that is returned by <code>the_content()<\/code> and\/or <code>the_excerpt()<\/code>.<\/p>\n<p><em>Example:<\/em> Insert a header between post content and Biography Box<\/p>\n<pre><code>add_filter ('wp_biographia_pattern', 'insert_biography_header');\n\nfunction insert_biography_header ($pattern) {\n    return '%1$s<p class=\"biography-header\">About The User<\/p>%2$s';\n}\n<\/code><\/pre>\n<h4>wp_biographia_pre<\/h4>\n<p>Allows display of the Biography Box to be hidden under user-defined circumstances. This only affects the display of the Biography Box that is configured via the plugin\u2019s admin screen or via the shortcode in configured mode.<\/p>\n<p><em>Example:<\/em> Hide the Biography Box<\/p>\n<pre><code>add_filter ('wp_biographia_pre', 'hide_biography_box');\n\nfunction hide_biography_box ($flag) {\n    return true;\n}\n<\/code><\/pre>\n<h4>wp_biographia_shortcode<\/h4>\n<p>Applied to the current instance of the Biography Box that is produced via the <code>[wp_biographia]<\/code> shortcode.<\/p>\n<p><em>Example:<\/em> Apply shortcode specific CSS to the Biography Box<\/p>\n<pre><code>add_filter ('wp_biographia_links', 'add_shortcode_css', 10, 2);\n\nfunction add_shortcode_css ($content, $params) {\n    \/\/ params = array (mode => shortcode-mode, user => author-id, prefix => prefix-string,\n                        name => name-option)\n\n    return '<div class=\"custom-shortcode-css\">' . $content . '<\/div>';\n}\n<\/code><\/pre>\n<h4>wp_biographia_content_title<\/h4>\n<p>Applied to the title of the Biography Box.<\/p>\n<p><em>Example:<\/em> Override the name prefix for all uses of the Biography Box.<\/p>\n<pre><code>add_filter ('wp_biographia_content_title', 'override_name_prefix', 10, 3);\nfunction override_name_prefix ($content, $name_prefix, $formatted_name) {\n    return 'This is ' . $formatted_name;\n}\n<\/code><\/pre>\n<h4>wp_biographia_links<\/h4>\n<p>Applied to the formatted set of contact links for the current instance of the Biography Box.<\/p>\n<p><em>Example:<\/em> Replace the default text link separator character (the pipe symbol \u201c|\u201d) with a dash (\u201c-\u201c).<\/p>\n<pre><code>add_filter ('wp_biographia_links', 'replace_link_separator', 10, 3);\n\nfunction replace_link_separator ($content, $links, $params) {\n    \/\/ links = array (link-item)\n    \/\/ params = array (glue => separator-string, class => link-item-css-class-name,\n    \/\/                  prefix => links-prefix-html, postfix => links-postfix-html)\n\n    return str_replace ($params['glue'], ' - ', $content);\n}\n<\/code><\/pre>\n<p><em>Example:<\/em> Wrap the formatted content links in an additional HTML div.<\/p>\n<pre><code>add_filter ('wp_biographia_links', 'wrap_links', 10, 3);\n\nfunction wrap_links ($content, $links, $params) {\n    \/\/ links = array (link-item)\n    \/\/ params = array (glue => separator-string, class => link-item-css-class-name,\n    \/\/                  prefix => links-prefix-html, postfix => links-postfix-html)\n\n    $new_prefix = '<div class=\"custom-link-class\">' . $params['prefix'];\n    $new_postfix = $params['postfix'] . '<\/div>';\n\n    return $new_prefix . implode ($params['glue'], $links) . $new_postfix;\n}\n<\/code><\/pre>\n<h4>wp_biographia_link_item<\/h4>\n<p>Applied to each active contact link, in the order in which they are processed by the plugin.<\/p>\n<p><em>Example:<\/em> Force all links that point to the current site to open in a new window.<\/p>\n<pre><code>add_filter ('wp_biographia_link_item', 'filter_link_item', 10, 2);\n\nfunction filter_link_item ($content, $params) {\n    \/\/ $params = array (\n    \/\/      'type' => 'link type (icon|text)',\n    \/\/      'format' => 'link format string',\n    \/\/      'meta' => 'additional anchor attributes',\n    \/\/      'title' => 'link title',\n    \/\/      'url' => 'link URL',\n    \/\/      'body' => 'link body text',\n    \/\/      'link-class' => 'link CSS class name',\n    \/\/      'item-class' => 'link item CSS class name (icons only)'\n    \/\/  );\n\n    $site_url = site_url ();\n    $pos = strpos ($params['url'], $site_url);\n    if ($pos !== false) {\n        $params['meta'] = 'target=\"_blank\"';\n    }\n\n    if ($params['type'] === 'icon') {\n        $content = sprintf ($params['format'], $params['url'], $params['meta'], $params['title'], $params['link-class'], $params['body'], $params['item-class']);\n    }\n\n    else {\n        $content = sprintf ($params['format'], $params['url'], $params['meta'], $params['title'], $params['link-class'], $params['body']);\n    }\n\n    return $content;\n}\n<\/code><\/pre>\n<h4>wp_biographia_feed<\/h4>\n<p>Applied to the current instance of the Biography Box that is produced via the site\u2019s RSS feed.<\/p>\n<p><em>Example:<\/em> Apply RSS feed specific CSS to the Biography Box<\/p>\n<pre><code>add_filter ('wp_biographia_feed', 'add_feed_css');\n\nfunction add_feed_css ($content) {\n    return '<div class=\"custom-feed-css\">' . $content . '<\/div>';\n}\n<\/code><\/pre>\n<h4>wp_biographia_biography_box<\/h4>\n<p>Applied to the entire content of the current instance of the Biography Box.<\/p>\n<p><em>Example:<\/em> Remove all WP Biographia CSS classes commencing <code>wp-biographia-<\/code> and replace them with custom CSS classes that adhere to the plugin\u2019s CSS class naming convention.<\/p>\n<pre><code>add_filter ('wp_biographia_biography_box', 'replace_css_classes', 10, 2);\n\nfunction replace_css_classes ($biography, $items) {\n    $new_content = array ();\n\n    foreach ($items as $item) {\n        $new_content[] = str_replace ('wp-biographia-', 'custom-', $item);\n    }\n\n    return implode ('', $new_content);\n}<h3>Template Tags<\/h3>\n<\/code><\/pre>\n<p>WP Biographia supports two <a href=\"https:\/\/codex.wordpress.org\/Template_Tags\" rel=\"nofollow ugc\">template tags<\/a> that can be used in your theme\u2019s template files. These are described in more detail below; for a full description of the use of each tag\u2019s argument, see the <em>Shortcode Support And Usage<\/em> section. The plugin\u2019s tags allow you to:<\/p>\n<ul>\n<li>produce the Biography Box and assign the HTML for the Biography Box to a string.<\/li>\n<li>produce the Biography Box and echo the results immediately.<\/li>\n<\/ul>\n<h4>wpb_get_biography_box<\/h4>\n<p><em>Description:<\/em> Retrieves the Biography Box. This template tags renders the Biography Box and returns it to the caller as a string. To display the Biography Box immediately, use the <code>wpb_the_biography_box<\/code> template tag.<\/p>\n<p><em>Usage:<\/em><\/p>\n<pre><code><?php $biography_box = wpb_get_biography_box ($mode, $user, $prefix, $name, $role, $type, $order); ?>\n<\/code><\/pre>\n<p><em>Parameters:<\/em><\/p>\n<ul>\n<li><code>$mode<\/code> \u2013 (string) (<em>optional<\/em>) Override the Biography Box mode (<code>raw<\/code>|<code>configured<\/code>). Default: <code>raw<\/code>.<\/li>\n<li><code>$user<\/code> \u2013 (string) (<em>optional<\/em>) Override the source user (<code>login-name<\/code>|<code>*<\/code>). Default: the current user\u2019s login name.<\/li>\n<li><code>$prefix<\/code> \u2013 (string) (<em>optional<\/em>) Override the Biography Box title prefix. Default: use the plugin\u2019s settings.<\/li>\n<li><code>$name<\/code> \u2013 (string) (<em>optional<\/em>) Override the selected user\u2019s name format (<code>account-name<\/code>|<code>first-last-name<\/code>|<code>nickname<\/code>|<code>display-name<\/code>|<code>none<\/code>). Default: use the plugin\u2019s settings.<\/li>\n<li><code>$role<\/code> \u2013 (string) (<em>optional<\/em>) Override the selected user\u2019s role when used in <em>wildcard mode<\/em>. Specify one or more of the following, as a comma separated list (<code>administrator<\/code>|<code>editor<\/code>|<code>author<\/code>|<code>contributor<\/code>|<code>subscriber<\/code>). Default: none.<\/li>\n<li><code>$type<\/code> \u2013 (string) (<em>optional<\/em>) Override the type of the biography text (<code>full<\/code>|<code>excerpt<\/code>). Default: use the plugin\u2019s settings.<\/li>\n<li><code>$order<\/code> \u2013 (string) (<em>optional<\/em>) Override the sort order when used in <em>wildcard mode<\/em> (<code>account-name<\/code>|<code>first-name<\/code>|<code>last-name<\/code>|<code>nickname<\/code>|<code>display-name<\/code>|<code>login-id<\/code>). Default: <code>account-name<\/code>.<\/li>\n<\/ul>\n<h4>wpb_the_biography_box<\/h4>\n<p><em>Description:<\/em> Displays the Biography Box. This template tags renders the Biography Box and displays it immediately. To get the current Biography Box as a string, use the <code>wpb_get_biography_box<\/code> template tag.<\/p>\n<p><em>Usage:<\/em><\/p>\n<pre><code><?php wpb_the_biography_box ($mode, $user, $prefix, $name, $role, $type, $order); ?>\n<\/code><\/pre>\n<p><em>Parameters:<\/em><\/p>\n<ul>\n<li><code>$mode<\/code> \u2013 (string) (<em>optional<\/em>) Override the Biography Box mode (<code>raw<\/code>|<code>configured<\/code>). Default: <code>raw<\/code>.<\/li>\n<li><code>$user<\/code> \u2013 (string) (<em>optional<\/em>) Override the source user (<code>login-name<\/code>|<code>*<\/code>). Default: the current user\u2019s login name.<\/li>\n<li><code>$prefix<\/code> \u2013 (string) (<em>optional<\/em>) Override the Biography Box title prefix. Default: use the plugin\u2019s settings.<\/li>\n<li><code>$name<\/code> \u2013 (string) (<em>optional<\/em>) Override the selected user\u2019s name format (<code>account-name<\/code>|<code>first-last-name<\/code>|<code>nickname<\/code>|<code>display-name<\/code>|<code>none<\/code>). Default: use the plugin\u2019s settings.<\/li>\n<li><code>$role<\/code> \u2013 (string) (<em>optional<\/em>) Override the selected user\u2019s role when used in <em>wildcard mode<\/em>. Specify one or more of the following, as a comma separated list (<code>administrator<\/code>|<code>editor<\/code>|<code>author<\/code>|<code>contributor<\/code>|<code>subscriber<\/code>). Default: none.<\/li>\n<li><code>$type<\/code> \u2013 (string) (<em>optional<\/em>) Override the type of the biography text (<code>full<\/code>|<code>excerpt<\/code>). Default: use the plugin\u2019s settings.<\/li>\n<li><code>$order<\/code> \u2013 (string) (<em>optional<\/em>) Override the sort order when used in <em>wildcard mode<\/em> (<code>account-name<\/code>|<code>first-name<\/code>|<code>last-name<\/code>|<code>nickname<\/code>|<code>display-name<\/code>|<code>login-id<\/code>). Default: <code>account-name<\/code>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Add and display a customisable user biography to the front page, single post types, archives and RSS feeds as well as via a widget in your sidebar.<\/p>\n","protected":false},"author":65,"featured_media":228505,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"WP Biographia - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Add and display a customisable user biography to the front page, single post types, archives and RSS feeds as well as via a widget in your sidebar."},"footnotes":""},"categories":[1],"tags":[940,49580,6355,49581],"class_list":["post-203688","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-bio","tag-biographia","tag-biography","tag-wp-biographia"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/203688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=203688"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/203688\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/228505"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=203688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=203688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=203688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}