AI助手支持GPT4.0
This plugin allows you to enter [author_bio] anywhere within the content of a post or page to display the biography of the author of that post or page.
此插件可让您在帖子或页面的内容中的任意位置输入[author_bio],以显示该帖子或页面的作者的传记。 p>
The output now contains HTML, which can be customised very easily with extra parameters – see Installation for a how-to – to sit around the bio, as defined in /wp-admin/profile.php.
现在,输出包含HTML,可以使用/wp-admin/profile.php中的定义,使用附加参数非常轻松地自定义HTML(请参见“安装”中的操作方法)以围绕生物。 p>
By default the shortcode produces the author of that post or page.
默认情况下,简码会产生该帖子或页面的作者。
However, extra parameters enable you to specify a different user whose bio you want to print out – see usage instructions.
但是,额外的参数使您可以指定要打印其生物的其他用户-请参阅使用说明。 p>
Feature requests welcomed with open arms!
张开双臂欢迎功能要求! p>
Simple install in /wp-content/plugins like any other!
与其他任何其他应用一样,可以在/ wp-content / plugins中轻松安装! p>
Simply place [author_bio] anywhere within your post/page content.
只需将[author_bio]放置在您的帖子/页面内容中的任何地方。 p>
Additionally, you can pass one of the following attributes to specify a different user;
此外,您可以传递以下属性之一来指定其他用户; p>
ul>
For example;
例如;
[author_bio]
[author_bio id=”4″]
[author_bio id =” 4”]
[author_bio username=”admin”]
[author_bio username =“ admin”]
[author_bio email=”user@example.com”]
[author_bio email =” user@example.com”] p>
You can also have the author’s avatar added, by using the avatar parameter like so;
您还可以使用avatar参数添加作者的头像;
[author_bio avatar=”yes”]
[author_bio avatar =”是”]
Warning: if you don’t want the avatar, do not change the above to “no” as it will not work, simply change back to [author_bio] alone.
警告:如果您不想使用该头像,请不要将其更改为“ no”,因为它将不起作用,只需将其单独更改为 [author_bio] code>。 p>It’s possible to add the author’s name, too by adding the name parameter; 也可以通过添加name参数来添加作者的姓名; [author_bio name=”yes”][author_bio name =“ yes”] Warning: As with the avatar option, leave the name parameter out completely to hide the name.警告:与avatar选项一样,请完全省略name参数以隐藏名称。 p>Additionally, you can make the author’s name link to his/her website as defined in their profile; 此外,您还可以按照作者个人资料中的定义将其姓名链接到他/她的网站; [author_bio name=”yes” name_link=”yes”][author_bio name =“ yes” name_link =“ yes”] p>You can also customise the HTML output which defaults to;您还可以自定义默认的HTML输出; p> … the author bio … …作者简介… p>There are 7 parameters that describe the HTML above;有7个参数描述了上面的HTML; p>‘container_element’ defaults to ‘div’ and creates the first div in the example above“ container_element”默认为“ div”,并在上面的示例中创建第一个div li>‘container_class’ defaults to ‘author_bio_shortcode’ as seen above如上所示,“ container_class”默认为“ author_bio_shortcode” li>‘name_container’ defaults to h3“ name_container”默认为h3 li>‘name_class’ defaults to ‘name’“名称类”默认为“名称” li>‘name_pre’ is empty by default and can be used to add text before the author’s name“ name_pre”默认为空,可用于在作者姓名之前添加文字 li>‘name_post’ is empty by default and can be used to add text after the author’s name“ name_post”默认为空,可用于在作者姓名后添加文字 li>‘avatar_container_element’ defaults to ‘div’ and creates the element that surrounds the avatar image“ avatar_container_element”默认为“ div”,并创建围绕头像图像的元素 li>‘avatar_container_class’ defaults to ‘avatar’ and adds itself to the ‘avatar_container_element’“ avatar_container_class”默认为“ avatar”,并将其自身添加到“ avatar_container_element” li>‘bio_container_element’ defaults to ‘div’ and wraps the bio text“ bio_container_element”默认为“ div”并包装生物文本 li>‘bio_container_class’ defaults to ‘bio’ and is used in the bio container element“ bio_container_class”默认为“ bio”,并在bio容器元素中使用 li>‘bio_paragraph’ defaults to true and decides whether to put the bio text into a Paragrah tag.“ bio_paragraph”默认为true,并决定是否将生物文本放入Paragrah标记中。Note, only a value of zero (0) will change it, e.g.请注意,只有零(0)值会更改它,例如bio_paragraph=0 bio_paragraph = 0 code> li> ul>Here is an example using all the HTML parameters to re-create the above example code; 以下是使用所有HTML参数重新创建上述示例代码的示例; [author_bio container_element=”div” container_class=”author-bio-shortcode” avatar_container_element=”div” avatar_container_class=”avatar” bio_container_element=”div” bio_container_class=”bio” bio_paragraph=”true”][author_bio container_element =“ div” container_class =“ author-bio-shortcode” avatar_container_element =“ div” avatar_container_class =“ avatar” bio_container_element =“ div” bio_container_class =“ bio” bio_paragraph =“ true”] p>This example shows how to remove the P tag from around the bio text; 此示例显示了如何从生物文本周围删除P标签; [author_bio bio_paragraph=0][author_bio bio_paragraph = 0] p>
[author_bio] code>。 p>It’s possible to add the author’s name, too by adding the name parameter; 也可以通过添加name参数来添加作者的姓名; [author_bio name=”yes”][author_bio name =“ yes”] Warning: As with the avatar option, leave the name parameter out completely to hide the name.警告:与avatar选项一样,请完全省略name参数以隐藏名称。 p>Additionally, you can make the author’s name link to his/her website as defined in their profile; 此外,您还可以按照作者个人资料中的定义将其姓名链接到他/她的网站; [author_bio name=”yes” name_link=”yes”][author_bio name =“ yes” name_link =“ yes”] p>You can also customise the HTML output which defaults to;您还可以自定义默认的HTML输出; p> … the author bio … …作者简介… p>There are 7 parameters that describe the HTML above;有7个参数描述了上面的HTML; p>‘container_element’ defaults to ‘div’ and creates the first div in the example above“ container_element”默认为“ div”,并在上面的示例中创建第一个div li>‘container_class’ defaults to ‘author_bio_shortcode’ as seen above如上所示,“ container_class”默认为“ author_bio_shortcode” li>‘name_container’ defaults to h3“ name_container”默认为h3 li>‘name_class’ defaults to ‘name’“名称类”默认为“名称” li>‘name_pre’ is empty by default and can be used to add text before the author’s name“ name_pre”默认为空,可用于在作者姓名之前添加文字 li>‘name_post’ is empty by default and can be used to add text after the author’s name“ name_post”默认为空,可用于在作者姓名后添加文字 li>‘avatar_container_element’ defaults to ‘div’ and creates the element that surrounds the avatar image“ avatar_container_element”默认为“ div”,并创建围绕头像图像的元素 li>‘avatar_container_class’ defaults to ‘avatar’ and adds itself to the ‘avatar_container_element’“ avatar_container_class”默认为“ avatar”,并将其自身添加到“ avatar_container_element” li>‘bio_container_element’ defaults to ‘div’ and wraps the bio text“ bio_container_element”默认为“ div”并包装生物文本 li>‘bio_container_class’ defaults to ‘bio’ and is used in the bio container element“ bio_container_class”默认为“ bio”,并在bio容器元素中使用 li>‘bio_paragraph’ defaults to true and decides whether to put the bio text into a Paragrah tag.“ bio_paragraph”默认为true,并决定是否将生物文本放入Paragrah标记中。Note, only a value of zero (0) will change it, e.g.请注意,只有零(0)值会更改它,例如bio_paragraph=0 bio_paragraph = 0 code> li> ul>Here is an example using all the HTML parameters to re-create the above example code; 以下是使用所有HTML参数重新创建上述示例代码的示例; [author_bio container_element=”div” container_class=”author-bio-shortcode” avatar_container_element=”div” avatar_container_class=”avatar” bio_container_element=”div” bio_container_class=”bio” bio_paragraph=”true”][author_bio container_element =“ div” container_class =“ author-bio-shortcode” avatar_container_element =“ div” avatar_container_class =“ avatar” bio_container_element =“ div” bio_container_class =“ bio” bio_paragraph =“ true”] p>This example shows how to remove the P tag from around the bio text; 此示例显示了如何从生物文本周围删除P标签; [author_bio bio_paragraph=0][author_bio bio_paragraph = 0] p>
It’s possible to add the author’s name, too by adding the name parameter;
也可以通过添加name参数来添加作者的姓名;
[author_bio name=”yes”]
[author_bio name =“ yes”]
Warning: As with the avatar option, leave the name parameter out completely to hide the name.
警告:与avatar选项一样,请完全省略name参数以隐藏名称。 p>
Additionally, you can make the author’s name link to his/her website as defined in their profile;
此外,您还可以按照作者个人资料中的定义将其姓名链接到他/她的网站;
[author_bio name=”yes” name_link=”yes”]
[author_bio name =“ yes” name_link =“ yes”] p>
You can also customise the HTML output which defaults to;
您还可以自定义默认的HTML输出; p>
… the author bio …
…作者简介… p>
There are 7 parameters that describe the HTML above;
有7个参数描述了上面的HTML; p>
如上所示,
Note, only a value of zero (0) will change it, e.g.
请注意,只有零(0)值会更改它,例如
bio_paragraph=0
bio_paragraph = 0 code> li>
Here is an example using all the HTML parameters to re-create the above example code;
以下是使用所有HTML参数重新创建上述示例代码的示例;
[author_bio container_element=”div” container_class=”author-bio-shortcode” avatar_container_element=”div” avatar_container_class=”avatar” bio_container_element=”div” bio_container_class=”bio” bio_paragraph=”true”]
[author_bio container_element =“ div” container_class =“ author-bio-shortcode” avatar_container_element =“ div” avatar_container_class =“ avatar” bio_container_element =“ div” bio_container_class =“ bio” bio_paragraph =“ true”] p>
This example shows how to remove the P tag from around the bio text;
此示例显示了如何从生物文本周围删除P标签;
[author_bio bio_paragraph=0]
[author_bio bio_paragraph = 0] p>
原文出处:http://www.sanshu.cn/a/3101.html
群主管理都是支付大佬