Template error, template file not found

[wordpress插件] What is it?它是什么?

评分0描述Author Notify is a wordpress plugin to show a message box in all the posts by a particular author.作者通知是一个wordpress插件,用于在特定作者的...
继续阅读 »
评分
0
描述

Author Notify is a wordpress plugin to show a message box in all the posts by a particular author.

作者通知是一个wordpress插件,用于在特定作者的所有帖子中显示一个消息框。

I thought about writing this plugin because my wife moved her blog out to a new domain, and I want to put up this notification to all her posts.

我之所以想编写此插件,是因为我的妻子将她的博客移到了一个新域,并且我希望将此通知贴到她的所有帖子中。

This plugin is also useful when multiple writers are writing on one blog, and one of them needs to put up an announcement in all his/her posts.

当多个作者在一个博客上写作,并且其中一位需要在他/她的所有帖子中张贴公告时,此插件也很有用。

Version 0.1 of the Plugin is now available for download!

该插件的0.1版现已可供下载!

This version has been tested on WordPress 2.1.3, but from the way I write it, it should run on all versions.

这个版本已经在WordPress 2.1.3上进行了测试,但是从我写它的方式来看,它应该可以在所有版本上运行。

This version contains the following improvements:

此版本包含以下改进:

* From zero to zero point one, an increase of infinity!

  *从零到零点一,无穷大! 

(0.1-0)/0=infinity

(0.1-0)/ 0 =无穷大

I do not ask for donations for writing this plugin, please email me and let me know you are using it, that will make me very happy.

我不要求捐款来编写此插件,请给我发电子邮件,让我知道你正在使用它,这会让我非常高兴。

Installation:

安装:

    1. Download the file, and unzip authornotify.php into your wordpress plugins directory.
    2. 下载文件,然后将authornotify.php解压缩到您的wordpress插件目录中。

    3. Activate the plugin in your ??Plugins??

    4. 激活您的“插件”中的插件

      interface.

    5. 界面。

    6. Go to ??Options???C>??Author Notify??, to change the ??author nickname??, and the ??message??.
    7. 转到“选项” C>“作者通知”,更改“作者昵称”和“消息”。

    Prof.

    教授

    Michael Zhang http://mikezhang.com

    迈克尔·张http://mikezhang.com

下载地址
https://downloads.wordpress.org/plugin/author-notify.zip
收起阅读 »

[wordpress插件] Author Name in RSS FeedRSS Feed中的作者姓名

评分0描述Do you have multiple authors creating post/pages that would like to show up in all RSS Readers.您是否有多个作者创建要显示在所有RSS阅读器中的帖子/页面。...
继续阅读 »
评分
0
描述

Do you have multiple authors creating post/pages that would like to show up in all RSS Readers.

您是否有多个作者创建要显示在所有RSS阅读器中的帖子/页面。

This simple plugin changes the title in your RSS feeds to include the Title and then the Author’s name.

这个简单的插件可在您的RSS供稿中更改标题,以包括标题,然后是作者的姓名。

In the settings area, you choose what the separator is between the Title and Author name and how its spaced.

在设置区域中,选择标题和作者名称之间的分隔符以及分隔符。

安装步骤

    1. Upload AddAuthor.php to the /wp-content/plugins/ directory
    2. AddAuthor.php 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Edit the Settings page with the reminders you want to show up.
    6. 使用要显示的提醒来编辑“设置”页面。

下载地址
https://downloads.wordpress.org/plugin/author-name-in-rss-feed.0.1.zip
收起阅读 »

[wordpress插件] Author Meta作者元

评分0描述Adds meta name=”author” to the of your posts and pages.将元名称=“作者”添加到您的帖子和页面的。安装步骤Option 1: Download from WordPress.org throug...
继续阅读 »
评分
0
描述

Adds meta name=”author” to the of your posts and pages.

将元名称=“作者”添加到您的帖子和页面的。

安装步骤

Option 1: Download from WordPress.org through WordPress Plugin Installer

选项1:通过WordPress插件安装程序从WordPress.org下载

    1. Go to your plugins page and click the “Add New” button.
    2. 转到您的插件页面,然后单击“添加新”按钮。

    3. Search for the “Author Meta” plugin.
    4. 搜索“作者元”插件。

    5. Once found, click on the link from the search page to go to the installation page.
    6. 找到后,单击搜索页面上的链接转到安装页面。

    7. Click the “Install Now” button to install the plugin from the WordPress site.
    8. 单击“立即安装”按钮以从WordPress网站安装插件。

    9. Activate the Plugin.
    10. 激活插件。

    Option 2: Manually download the Plugin and upload it to your WordPress site:

    选项2:手动下载插件并将其上传到您的WordPress网站:

    1. Download the Plugins .ZIP file.

    1.下载插件.ZIP文件。

    2. Extract the .ZIP file so that the files are in the root folder of the expanded folder.

    2.提取.ZIP文件,以使这些文件位于扩展文件夹的根文件夹中。

    3. Upload the expanded plugin folder to your site at: /wp-content/plugins/ folder.

    3.将扩展的插件文件夹上传到您的站点,位于:/ wp-content / plugins /文件夹。

    4. Activate the Plugin.

    4.激活插件。

下载地址
https://downloads.wordpress.org/plugin/author-meta.zip
收起阅读 »

[wordpress插件] Author Location作者位置

评分0描述Allows authors to set their location, and then display it on a Google Map.允许作者设置他们的位置,然后将其显示在Google地图上。Adds a template tag: ...
继续阅读 »
评分
0
描述

Allows authors to set their location, and then display it on a Google Map.

允许作者设置他们的位置,然后将其显示在Google地图上。

Adds a template tag:

添加模板标签: <?php al_list_authors();

?> with the following available arguments:

?> 具有以下可用参数:

    • include_protected_posts=1 : Include protected posts when calculating the latest post.
    • include_protected_posts = 1:计算最新帖子时包括受保护的帖子。

    • echo=1 : Whether to write the map and listing into the page, or return it (so you can assign the HTML to a variable).
    • echo = 1:是将地图和列表写入页面还是返回页面(以便可以将HTML分配给变量)。

    The HTML output is fairly heavily classed, for ease of CSS styling, but if you need to adapt it you can.

    为了简化CSS样式,HTML输出的分类相当严格,但是如果需要对其进行调整,则可以。

    Create a directory in your theme called “view”, and a directory within that one called “author-listings”.

    在您的主题中创建一个名为“ view”的目录,并在其中创建一个名为“ author-listings”的目录。

    Then copy the template files from view/author-location/ in the plugin directory into your theme directory and amend as you need.

    然后将模板文件从插件目录中的 view / author-location / 复制到主题目录中,并根据需要进行修改。

    If these files exist in these directories in your theme they will override the ones in the plugin directory.

    如果这些文件存在于主题的这些目录中,则它们将覆盖plugin目录中的文件。

    This is good because it means that when you update the plugin you can simply overwrite the old plugin directory as you haven’t changed any files in it.

    这很好,因为这意味着更新插件时,您可以简单地覆盖旧的插件目录,因为其中没有更改任何文件。

    All hail John Godley for the code which allows this magic to happen.

    所有 John Godley 都提供了使这种魔术发生的代码。

    Plugin initially produced on behalf of Puffbox.

    插件最初是代表 Puffbox 产生的。

    Is this plugin lacking a feature you want?

    此插件缺少您想要的功能吗?

    I'm happy to accept offers of feature sponsorship: contact me and we can discuss your

    我很高兴接受功能赞助的提议:与我联系,我们可以讨论您的问题

    ideas.

    想法。

    Any issues: contact me.

    任何问题:与我联系

安装步骤

The plugin is simple to install:

该插件易于安装:

    1. Download author-locations.zip
    2. 下载 author-locations.zip

    3. Unzip
    4. 解压缩

    5. Upload author-locations directory to your /wp-content/plugins directory
    6. author-locations 目录上传到您的 / wp-content / plugins 目录

    7. Go to the plugin management page and enable the plugin
    8. 转到插件管理页面并启用插件

    9. Give yourself a pat on the back
    10. 拍拍自己的背

下载地址
https://downloads.wordpress.org/plugin/author-locations.1.0.zip
收起阅读 »

[wordpress插件] Author Listing作者列表

评分0描述A plugin providing template tags to list all active (or inactive) authors in the WordPress installation.一个提供模板标签的插件,用于列出WordP...
继续阅读 »
评分
0
描述

A plugin providing template tags to list all active (or inactive) authors in the WordPress installation.

一个提供模板标签的插件,用于列出WordPress安装中的所有活跃(或非活跃)作者。

  <?php list_active_authors('days = 30&include_protected_posts = 0'); 

?> Will list all the authors active in the last 30 days, not counting password protected posts as "activity".

?>将列出过去30天内所有活动的作者,而不将受密码保护的帖子计为“活动”。

Both parameters are optional.

这两个参数都是可选的。

<?php list_inactive_authors('days = 30&include_protected_posts = 0');

?> Will list all the authors NOT active in the last 30 days, counting password protected posts as "activity".

?>将列出过去30天内未处于活动状态的所有作者,将受密码保护的帖子视为“活动”。

Again, both parameters are optional.

同样,两个参数都是可选的。

If “days” are not provided the tags default to the last 30 days.

如果未提供“天”,则标签默认为最近30天。

If “include_protected_posts” is not specified, the tags default to not including password protected posts.

如果未指定“ include_protected_posts”,则标签默认不包含受密码保护的帖子。

The HTML output is fairly heavily classed, but if you need to adapt it you can.

HTML输出的分类相当严格,但是如果需要对其进行调整,则可以。

Create a directory in your theme called “view”, and a directory within that one called “author-listings”.

在您的主题中创建一个名为“ view”的目录,并在其中创建一个名为“ author-listings”的目录。

Then copy the template files view/author-listings/active-authors-list.php and/or view/author-listings/inactive-authors-list.php from the

然后从以下位置复制模板文件 view / author-listings / active-authors-list.php 和/或 view / author-listings / inactive-authors-list.php

plugin directory into your theme directory and amend as you need.

插件目录插入主题目录,并根据需要进行修改。

If these files exist in these directories in your theme they will override the ones in the plugin directory.

如果这些文件存在于主题的这些目录中,则它们将覆盖plugin目录中的文件。

This is good because it means that when you update the plugin you can simply overwrite the old plugin directory as you haven’t changed any files in it.

这很好,因为这意味着更新插件时,您可以简单地覆盖旧的插件目录,因为其中没有更改任何文件。

All hail John Godley for the code which allows this magic to happen.

所有为 John Godley 所写的代码都使这种魔术发生了。

Can hook into the User Photo plugin to display the author photos.

可以插入用户照片插件以显示作者照片。

Plugin initially produced on behalf of Puffbox.

插件最初是代表 Puffbox 产生的。

Is this plugin lacking a feature you want?

此插件缺少您想要的功能吗?

I'm happy to accept offers of feature sponsorship: contact me and we can discuss your

我很高兴接受功能赞助的提议:与我联系,我们可以讨论您的问题

ideas.

想法。

Any issues: contact me.

任何问题:与我联系

安装步骤

The plugin is simple to install:

该插件易于安装:

    1. Download author-listings.zip
    2. 下载 author-listings.zip

    3. Unzip
    4. 解压缩

    5. Upload author-listings directory to your /wp-content/plugins directory
    6. author-listings 目录上传到您的 / wp-content / plugins 目录

    7. Go to the plugin management page and enable the plugin
    8. 转到插件管理页面并启用插件

    9. Give yourself a pat on the back
    10. 拍拍自己的背

下载地址
https://downloads.wordpress.org/plugin/author-listing.1.02.zip
收起阅读 »

[wordpress插件] Author List作者名单

评分90描述Display the list of authors with gravatar image and show the total number of post count on hover显示带有图像的作者列表,并显示悬停时的帖子总数Throu...
继续阅读 »
评分
90
描述

Display the list of authors with gravatar image and show the total number of post count on hover

显示带有图像的作者列表,并显示悬停时的帖子总数

Through this plugin user can,

通过该插件用户可以

    • Able to show the Author list through widget.
    • 能够通过小部件显示作者列表。

    • Onhover author image, the total number of post, nic name / user name and gravatar image will be displayed.
    • 悬停作者图像,将显示帖子总数,nic名称/用户名和头像图像。

    • Admin can set the limit of authors to display.
    • 管理员可以设置显示的作者数限制。

    • Admin can set the gravatar image size to be 24×24, 48×48 or 96×96 pixel.
    • 管理员可以将图形图像的大小设置为24×24、48×48或96×96像素。

    • Admin can customize the widget title name.
    • 管理员可以自定义窗口小部件标题名称。

    • Authors will be sort based on the number of post they published.
    • 作者将根据发表的帖子数进行排序。

    • Admin can able to select the role based filter.[New – 05082015]
    • 管理员可以选择基于角色的过滤器。[新– 05082015]

    • Support WordPress 4.3
    • 支持WordPress 4.3

    For More Information : http://buffercode.com/project/author-list/

    有关更多信息:http://buffercode.com/project/author-list/

    v 2.2.1 25082015

    v 2.2.1 25082015

      • Bug fixes
      • 错误修复

      v 2.2

      v 2.2

        • Support WordPress 4.3
        • 支持WordPress 4.3

        v 2.1 (05082015)

        v 2.1(05082015)

          • Admin can able to select the role based filter.
          • 管理员可以选择基于角色的过滤器。

          v 2.0 (04082015)

          v 2.0(04082015)

            • Bug fixes
            • 错误修复

            • Added recent 5 post to author popup.
            • 在作者弹出窗口中添加了最近的5条帖子。

            • Support 4.2.4
            • 支持4.2.4

            v 1.2 (30/3/2014)

            v 1.2(2014年3月30日)

              • Bug fixes, now display all author list
              • 错误修复,现在显示所有作者列表

              v 1.1.1 (2/1/2014)

              v 1.1.1(2/1/2014)

                • Now Instead of Username Nickname will be displayed.
                • 现在将显示昵称而不是用户名。

                v 1.1

                v 1.1

                  • Authors will be sort based on the number of post they published.
                  • 作者将根据发表的帖子数进行排序。

                  v 1.0

                  v 1.0

                    • Public release
                    • 公开发布

安装步骤

    1. Upload the “author-list” directory to the plugins directory.
    2. 将“作者列表”目录上传到插件目录。

    3. Go to the plugins setting page and activate “Author List”
    4. 转到插件设置页面并激活“作者列表”

    5. Go to Appearance –> Widget –> Author List Widget to appropriate location to display the Author List.
    6. 转到外观–>小部件–>作者列表小部件到适当的位置以显示作者列表。

    7. Enter the customize title to display in the Author List
    8. 输入要显示在作者列表中的自定义标题

    For More Information : http://buffercode.com/project/author-list/

    有关更多信息:http://buffercode.com/project/author-list/

下载地址
https://downloads.wordpress.org/plugin/author-list.2.2.1.zip
收起阅读 »

[wordpress插件] Author Info Icon作者信息图标

评分0描述Social user Plugins show your social icon and your social link with content where you post the content.社交用户插件会在您发布内容的地方显示您的社交...
继续阅读 »
评分
0
描述

Social user Plugins show your social icon and your social link with content where you post the content.

社交用户插件会在您发布内容的地方显示您的社交图标和带有内容的社交链接。

安装步骤

Step 1. Download the Plugin from from official WordPress Plugin Directory.

步骤1.从官方WordPress插件目录下载插件。

Step 2. Upload it in you wp-content/plugins directory.

第2步。将其上传到wp-content / plugins目录中。

Step 3. Activate it from Admin panel.

第3步。在“管理”面板中将其激活。

下载地址
https://downloads.wordpress.org/plugin/author-info-icon.zip
收起阅读 »

[wordpress插件] Author: Alessio Moretto作者:Alessio Moretto

评分0描述Author Bio for wordpress is a easy plugin for give information about you for the reader, so they can follow you and get updat...
继续阅读 »
评分
0
描述

Author Bio for wordpress is a easy plugin for give information about you for the reader, so they can follow you and get updated in real time on social.

Author Bio for wordpress是一个简单的插件,可为读者提供有关您的信息,因此他们可以关注您并实时更新社交内容。

Support unlimited color (with color picker) and customization for each user.

支持无限颜色(带有颜色选择器)和每个用户的自定义。

You can easly add social link and social tab to engage user to follow you.

您可以轻松添加社交链接和社交标签来吸引用户关注您。

You can also add a custom tab or a contact form to let’s user contact you in 2 seconds.

您还可以添加自定义标签或联系表单,以便用户在2秒钟内与您联系。

Demo: www.alessiomoretto.com/progetti/wordpress-author-info-box/

演示:www.alessiomoretto.com/progetti/wordpress-author-info-box /

Donations

捐赠

with PayPal on morettolss@gmail.com

在morettolss@gmail.com上使用PayPal

安装步骤

    1. Upload the plugin files to the ‘/wp-content/plugins/plugin-name’ directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到“ / wp-content / plugins / plugin-name”目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. You can find the settings on “author Info Box” and edit user value on profile page
    6. 您可以在“作者信息框”上找到设置,并在个人资料页面上编辑用户值

下载地址
https://downloads.wordpress.org/plugin/author-info-box.zip
收起阅读 »

[wordpress插件] Author Image(s)作者图像

评分0描述Display image (if present) and/or name for the author of a post, or for all authors on the blog.显示帖子作者或博客上所有作者的图像(如果有)和/或名称。U...
继续阅读 »
评分
0
描述

Display image (if present) and/or name for the author of a post, or for all authors on the blog.

显示帖子作者或博客上所有作者的图像(如果有)和/或名称。

Use

使用 <?php c2c_the_author_image();

?> as a replacement for or

?> 替代 <?php the_author()?> <?php get_avatar();

?> in index.php (and/or any other post templates) to display an image for a post’s author (inside “the loop”)

?> 在index.php(和/或任何其他帖子模板)中显示帖子作者的图片(在“循环”中)

Use

使用 <?php c2c_wp_list_authors_images();

?> as a replacement for

?> 代替 <?php wp_list_authors();

?> in the sidebar section of your site to list all authors for the blog using an image and/or text.

网站侧边栏部分的?> ,以使用图像和/或文本列出博客的所有作者。

The plugin also provides a simple widget for listing authors.

该插件还提供了一个用于列出作者的简单小部件。

Process by which the image is located and/or text used:

定位图像和/或使用文字的过程:

    1. If a post has an ‘author_image’ custom field defined, the plugin checks if the value is the valid name of an image in the defined image directory.

    2. 如果帖子中定义了“ author_image”自定义字段,则插件会检查该值是否为已定义图像目录中图像的有效名称。

      If not, it appends each of the defined image extensions, in turn, to the custom field’s value, then checks if an image can be found.

    3. 如果没有,它将依次将每个定义的图像扩展名附加到自定义字段的值,然后检查是否可以找到图像。

    4. If no image has been found yet, it looks in the image directory for a file with a name that is the author’s login name with a file extension matching one of the ones defined in image extensions.
    5. 如果尚未找到图像,它将在图像目录中查找名称为作者登录名且文件扩展名与图像扩展名定义的文件名匹配的文件。

    6. If no image has been found yet, it looks in the image directory for a file with a name that is the author’s ID with a file extension matching one of the ones defined in image extensions.
    7. 如果尚未找到图像,它将在图像目录中查找名称为作者ID且文件扩展名与图像扩展名中定义的文件之一匹配的文件。

    8. If no image has been found yet and Gravatar support is enabled, it then asks Gravatar for the avatar associated with the author (based on author’s email address).
    9. 如果尚未找到图片并且启用了Gravatar支持,则会向Gravatar询问与作者关联的头像(基于作者的电子邮件地址)。

    10. If no image has been found yet and a blank/generic image has been defined, then the blank image is used as the author’s avatar.
    11. 如果尚未找到图片并且定义了空白/通用图片,则将空白图片用作作者的头像。

    12. If an image has been found and the “Show author name as well?”

    13. 如果找到了图像,并且“还显示作者姓名?”

      setting is true, or if no author image has been found and “Show author name if image is found?”

      设置为true,或者找不到作者图像,并且显示“如果找到图像则显示作者名称?”

      setting is true, then the author’s name is appended/used.

    14. 设置为true,然后会附加/使用作者的姓名。

    Additional notes:

    其他说明:

      • The plugins admin options page allows you to control if the author's name should appear alongside the author image or not, if the author name should be shown in the event no author image could be found, the image directory, the support image extensions

      • 通过插件管理选项页面,您可以控制是否应在作者图像旁边显示作者姓名,如果在找不到作者图像的情况下应显示作者姓名,图像目录,支持图像扩展名

        , and if and what you want the author image to link to.

      • ,以及您希望作者图像链接到的内容和内容。

      • Images output by c2c_the_author_image() are defined with class=”author_image” for stylesheet manipulation
      • c2c_the_author_image()输出的图像使用class =“ author_image”定义,用于样式表操作

      • Images output by c2c_wp_list_authors_images() are defined with class=”list_author_image” for stylesheet manipulation
      • c2c_wp_list_authors_images()输出的图像使用class =“ list_author_image”进行定义以用于样式表操作

      Tip:: You can take advantage of the $image_dir argument to display different author images under different contexts, ie locate your images in different directories 'wp-content/images/authors/small/' and 'wp-content/images

      提示::您可以利用$ image_dir参数在不同的上下文中显示不同的作者图像,即,将图像放置在“ wp-content / images / authors / small /”和“ wp-content / images”的不同目录中

      /authors/large/' and decide on context where to get the image(s) from.

      / authors / large /',并确定从何处获取图像的上下文。

      Links: Plugin Homepage |

      链接:插件主页 |

      Plugin Directory Page |

      插件目录页面 |

      Author Homepage

      作者主页

      Template Tags

      模板标签

      The plugin provides three optional template tags for use in your theme templates.

      该插件提供了三个可选模板标签,供您在主题模板中使用。

      Functions

      功能

        • function c2c_get_author_image( $args = array() )

          函数c2c_get_author_image($ args = array())

          Gets the image and/or name for an author.

          获取作者的图像和/或名称。

        • function c2c_the_author_image( $before = '', $after = '', $image_dir = '', $width = '', $height = '' )

          函数c2c_the_author_image($ before =``,$ after ='',$ image_dir =``,$ width ='',$ height =``))

          A drop-in replacement for WordPress’s the_author() , allowing the author for the post to have an image displayed in lieu of the name (if an image can be found).

          WordPress的 the_author()的直接替代品,允许帖子的作者显示图像来代替名称(如果可以找到图像)。

        • function c2c_wp_list_authors_images( $args = '' )

          函数c2c_wp_list_authors_images($ args ='')

          A drop-in replacement for WordPress’s wp_list_authors(), allowing all authors for a blog to be listed with an image (if present).

          WordPress的 wp_list_authors()的直接替代品,可以为博客的所有作者列出图片(如果有)。

        This displays the image associated with a post’s categories.

        这将显示与帖子类别相关的图像。

        Arguments

        参数

          • $before

            $ before

            Optional argument.

            可选参数。

            The text and/or HTML to appear before the author image/text, if any such text would be returned.

            如果将返回任何这样的文本,则显示在作者图像/文本之前的文本和/或HTML。

          • $after

            $ after

            Optional argument.

            可选参数。

            The text and/or HTML to appear after the author image/text, if any such text would be returned.

            该文本和/或HTML(如果返回任何此类文本,则显示在作者图像/文本之后)。

          • $image_dir

            $ image_dir

            Optional argument.

            可选参数。

            The directory, relative to the root of your blog, in which to find the author images.

            相对于博客根目录的目录,可在其中找到作者图像。

            If not set, it defaults to the value configured via the plugin’s admin options page.

            如果未设置,则默认为通过插件的管理选项页配置的值。

          • $width

            $ width

            Optional argument.

            可选参数。

            The forced width of the image (will cause browser to resize if image is of different width).

            图片的强制宽度(如果图片的宽度不同,将导致浏览器调整大小)。

            Leave blank to retain image’s original width (or for the width to be scaled in proportion to a specified height).

            留空以保留图像的原始宽度(或将宽度与指定高度成比例地缩放)。

            It is recommended that images exist at the desired size.

            建议图像以所需大小存在。

          • $height

            $ height

            Optional argument.

            可选参数。

            The forced height of the image (will cause browser to resize if image is of different height).

            图片的强制高度(如果图片的高度不同,将导致浏览器调整大小)。

            Leave blank to retain image’s original height (or for the height to be scaled in proportion to a specified width).

            保留空白以保留图像的原始高度(或将高度与指定宽度成比例缩放)。

            It is recommended that images exist at the desired size.

            建议图像以所需大小存在。

          • $author_id

            $ author_id

            Optional argument.

            可选参数。

            The id of the author.

            作者的ID。

            If null, then gets the author for the current post.

            如果为null,则获取当前帖子的作者。

            Default is null.

            默认为空。

          • $args (as used in c2c_get_author_image())

            $ args (在 c2c_get_author_image()中使用)

            Optional argument.

            可选参数。

            An array of configuration options.

            一系列配置选项。

              • author_id : default of current post author;

              • author_id:当前帖子作者的默认值;

                the id of the author to get the image for

              • 用于获取图片的作者的ID

              • before : default of ”;

              • 之前:默认为;

                text to show before each author

              • 在每位作者面前显示的文字

              • after : default of ”;

              • 之后:默认为;

                text to show after each author

              • 在每位作者之后显示的文字

              • image_dir : default of ”;

              • image_dir:默认为;

                directory containing author images, relative to wp-content directory

              • 包含作者图像的目录,相对于wp-content目录

              • width : default of ”;

              • width:默认为;

                width to display image

              • 显示图像的宽度

              • height : default of ”;

              • height:默认为;

                height to display image

              • 显示图像的高度

              • show_name : default of ” which means it’ll abide by the plugin’s setting value;

              • show_name:默认为”,表示它将遵守插件的设置值;

                should the name of the author be shown in addition to the image?

              • 除了图片,还应该显示作者的名字吗?

              • show_fullname : default of false;

              • show_fullname:默认为false;

                should the user’s first and last name be shown instead of the author’s configured display name?

                应该显示用户的名字和姓氏,而不是作者配置的显示名吗?

                (be sure to set ‘show_name’ to true if you want the name to appear in the first place)

              • (如果您希望名称首先出现,请确保将“ show_name”设置为true)

              • show_name_if_no_image : default of ” which means it’ll abide by the plugin’s setting value;

              • show_name_if_no_image:默认值为”,表示它将遵守插件的设置值;

                should the author’s name be shown if the author doesn’t have an image?

              • 如果作者没有图片,应该显示作者的名字吗?

              • class : default of ”;

              • class:默认为;

                array or string of classes to apply to author image tag

              • 适用于作者图像标签的类的数组或字符串

              • use_gravatar : default of plugin settings;

              • use_gravatar:插件设置的默认值;

                should Gravatar be consulted for an author image if no local image for the author was found?

              • 如果找不到作者的本地图片,应该咨询Gravatar获得作者图片吗?

            • $args (as used in c2c_wp_list_authors_images)

              $ args (在 c2c_wp_list_authors_images 中使用)

              Optional argument.

              可选参数。

              An array of configuration options.

              一系列配置选项。

              All but the last two match up with the supported arguments of the wp_list_authors() function.

              除了最后两个以外,所有其他内容均与 wp_list_authors()函数支持的参数匹配。

                • optioncount : default of false;
                • optioncount:默认为false;

                • exclude_admin : default of true;

                • exclude_admin:默认为true;

                  should the admin user be excluded from the listing?

                • 应该将管理员用户从列表中排除吗?

                • hide_empty : default of true;

                • hide_empty:默认为true;

                  should authors who have not made any posts be excluded from the listings?

                • 应该将没有发表任何帖子的作者从列表中排除吗?

                • feed : default of ”
                • feed:默认为“

                • feed_image : default of ”
                • feed_image:默认为

                • echo : default of true;

                • echo:默认为true;

                  should the listing be echoed to the page?

                • 列表应与页面呼应吗?

                • show_name : default of ” which means it’ll abide by the plugin’s setting value;

                • show_name:默认为”,表示它将遵守插件的设置值;

                  should the name of the author be shown in addition to the image?

                • 除了图片,还应该显示作者的名字吗?

                • show_fullname : default of false;

                • show_fullname:默认为false;

                  should the user’s first and last name be shown instead of the author’s configured display name?

                  应该显示用户的名字和姓氏,而不是作者配置的显示名吗?

                  (be sure to set ‘show_name’ to true if you want the name to appear in the first place)

                • (如果您希望名称首先出现,请确保将“ show_name”设置为true)

                • show_name_if_no_image : default of '' which means it’ll abide by the plugin’s setting value;

                • show_name_if_no_image:默认为'',这意味着它将遵守插件的设置值;

                  should the author’s name be shown if the author doesn’t have an image?

                • 如果作者没有图片,应该显示作者的名字吗?

                • before : default of ”;

                • 之前:默认为;

                  text to show before each author

                • 在每位作者面前显示的文字

                • after : default of ”;

                • 之后:默认为;

                  text to show after each author

                • 在每位作者之后显示的文字

                • image_dir : default of ”;

                • image_dir:默认为;

                  directory containing author images, relative to wp-content directory

                • 包含作者图像的目录,相对于wp-content目录

                • width : default of ”;

                • width:默认为;

                  width to display image

                • 显示图像的宽度

                • height : default of ”;

                • height:默认为;

                  height to display image

                • 显示图像的高度

                • class : default of ”;

                • class:默认为;

                  array or string of classes to apply to author image tag

                • 适用于作者图像标签的类的数组或字符串

                • use_gravatar : default of plugin settings;

                • use_gravatar:插件设置的默认值;

                  should Gravatar be consulted for an author image if no local image for the author was found?

                • 如果找不到作者的本地图片,应该咨询Gravatar获得作者图片吗?

              Examples

              示例

                • Show the author image for the current post’s author (must be “in the loop”)

                  显示当前帖子作者的作者图像(必须为“循环中”)

                • Get the author image from a different directory when on a post’s permalink page (for instance, show a larger image on the permalink page)

                  在帖子的永久链接页面上从其他目录获取作者图像(例如,在永久链接页面上显示较大的图像)

                • List all authors in the sidebar

                  在边栏中列出所有作者

                  • Change some default options when listing authors

                    在列出作者时更改一些默认选项

                         

                           

                        false, ‘show_name_if_no_image’ => true));

                        false,“ show_name_if_no_image” => true));

                        ?>

                        ?>

                      Filters

                      过滤器

                      The plugin exposes two filters and two actions for hooking.

                      该插件提供了两个过滤器和两个用于挂接的动作。

                      Typically, customizations utilizing these hooks would be put into your active theme’s functions.php file, or used by another plugin.

                      通常,利用这些钩子进行的自定义将被放入活动主题的functions.php文件中,或由另一个插件使用。

                    c2c_get_author_image (filter)

                    c2c_get_author_image(过滤器)

                    The 'c2c_get_author_image' hook allows you to use an alternative approach to safely invoke c2c_get_author_image() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't

                    通过“ c2c_get_author_image”钩子,您可以使用另一种方法安全地调用 c2c_get_author_image(),这样,如果停用或删除了插件,则对函数的调用不会

                    cause errors in your site.

                    导致您的网站出现错误。

                    Arguments:

                    参数:

                      • same as for c2c_get_author_image()
                      • c2c_get_author_image()

                      Example:

                      示例:

                      Instead of:

                      代替:

                           false ) );

                        <?php $ image = c2c_get_author_image(array('show_name'=> false)); 

                      ?>

                      ?>

                      Do:

                      做:

                           false ) );

                        <?php $ image = apply_filters('c2c_get_author_image',array('show_name'=> false)); 

                      ?>

                      ?>

                      c2c_get_the_author_image (filter)

                      c2c_get_the_author_image(过滤器)

                      The 'c2c_get_the_author_image' hook allows you to use an alternative approach to safely invoke c2c_get_the_author_image() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't

                      通过“ c2c_get_the_author_image”钩子,您可以使用另一种方法安全地调用 c2c_get_the_author_image(),这样,如果停用或删除了插件,则对函数的调用不会

                      cause errors in your site.

                      导致您的网站出现错误。

                      Arguments:

                      参数:

                        • same as for c2c_get_the_author_image()
                        • c2c_get_the_author_image() 相同

                        Example:

                        示例:

                        Instead of:

                        代替:

                            

                          <?php $ image = c2c_get_the_author_image(); 

                        ?>

                        ?>

                        Do:

                        做:

                            

                          <?php $ image = apply_filters('c2c_get_the_author_image',''); 

                        ?>

                        ?>

                        c2c_the_author_image (action)

                        c2c_the_author_image(操作)

                        The 'c2c_the_author_image' hook allows you to use an alternative approach to safely invoke c2c_the_author_image() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't

                        通过'c2c_the_author_image'挂钩,您可以使用另一种方法安全地调用 c2c_the_author_image(),这样,如果停用或删除了插件,则对函数的调用不会

                        cause errors in your site.

                        导致您的网站出现错误。

                        Arguments:

                        参数:

                          • same as for c2c_the_author_image()
                          • c2c_the_author_image()

                          Example:

                          示例:

                          Instead of:

                          代替:

                              ', '', '/images' );

                            <?php c2c_the_author_image('','','/ images'); 

                          ?>

                          ?>

                          Do:

                          做:

                              ', '', '/images' );

                            <?php echo do_action('c2c_the_author_image','','','/ images'); 

                          ?>

                          ?>

                          c2c_wp_list_authors_images (action)

                          c2c_wp_list_authors_images(操作)

                          The 'c2c_wp_list_authors_images' hook allows you to use an alternative approach to safely invoke c2c_wp_list_authors_images() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't

                          通过“ c2c_wp_list_authors_images”钩子,您可以使用另一种方法安全地调用 c2c_wp_list_authors_images(),这样,如果停用或删除了插件,则对函数的调用不会

                          cause errors in your site.

                          导致您的网站出现错误。

                          Arguments:

                          参数:

                            • same as for c2c_wp_list_authors_images()
                            • 与c2c_wp_list_authors_images()相同

                            Example:

                            示例:

                            Instead of:

                            代替:

                                 false ) );

                              <?php echo c2c_wp_list_authors_images(array('hide_empty'=> false));复制代码

                            ?>

                            ?>

                            Do:

                            做:

                                 false ) );

                              <?php echo do_action('c2c_wp_list_authors_images',array('hide_empty'=> false));复制代码

                            ?>

                            ?>

安装步骤

    1. Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting
    2. 无论是安装还是更新(无论是此插件还是其他插件),始终建议在开始之前备份您的数据

    3. Unzip author-images.zip inside the /wp-content/plugins/ directory (or install via the built-in WordPress plugin installer)
    4. / wp-content / plugins / 目录中的 author-images.zip 解压缩(或通过内置的WordPress插件安装程序安装)

    5. Activate the plugin through the ‘Plugins’ admin menu in WordPress
    6. 通过WordPress中的“插件”管理菜单激活插件

    7. Go to the Users -> Author Images admin options page.

    8. 转到“用户->作者图像”管理选项页面。

      Optionally customize the options.

    9. (可选)自定义选项。

    10. Create the directory(s) that will contain author image(s) (path must be relative to wp-content/ directory) (by default this would be /wp-content/images/authors/)
    11. 创建将包含作者图像的目录(路径必须相对于wp-content /目录)(默认情况下为/ wp-content / images / authors /)

    12. Put images into the specified image directory, using the author login name or the author ID as the filename,

    13. 使用作者登录名或作者ID作为文件名,将图像放入指定的图像目录,

      with whatever extension you plan to support, i.e. admin.gif or 1.gif

    14. 具有您计划支持的任何扩展名,即admin.gif或1.gif

    15. (optional) Use the provided “Author Image(s)” widget, if so inclined.
    16. (可选)倾斜时使用提供的“作者图像”小部件。

    17. (optional) Modify your index.php and/or other template files to include calls to

    18. (可选)修改您的index.php和/或其他模板文件,以包含对 <?php的调用c2c_the_author_image();

      ?> and/or

      ?> 和/或

      .

      (Read the rest of these notes for more info.)

    19. (请阅读这些说明的其余部分以获取更多信息。)

    20. (optional) Add the custom field ‘author_image’ to posts to explicitly define an image for the author for just that post.

    21. (可选)在帖子中添加自定义字段“ author_image”,以便为该帖子明确为作者定义图片。

      Otherwise, the plugin will proceed to attempt to find the author image.

    22. 否则,插件将继续尝试查找作者图像。

    23. (optional) Add the class “author_image” to your CSS file to control the display of the image located by c2c_the_author_image(), and/or add the class “list_author_image” to your CSS file to

    24. (可选)将类“ author_image”添加到您的CSS文件中,以控制由 c2c_the_author_image()定位的图像的显示,和/或将类“ list_author_image”添加到您的CSS文件中,

      control the display of the images listed by c2c_wp_list_authors_images().

    25. 控制 c2c_wp_list_authors_images()列出的图像的显示。

下载地址
https://downloads.wordpress.org/plugin/author-images.3.6.zip
收起阅读 »

[wordpress插件] WP Custom Author ImageWP自定义作者图片

评分100描述The WP Custom Author Image plugin for WordPress lets you easily add WP Custom Author Images on your site.用于WordPress的WP Cus...
继续阅读 »
评分
100
描述

The WP Custom Author Image plugin for WordPress lets you easily add WP Custom Author Images on your site.

用于WordPress的WP Custom Author Image插件可让您轻松地在您的网站上添加WP Custom Author Images。

It creates a widget that you can insert in a sidebar or any other widget area allowed by your theme.

它会创建一个小部件,您可以将其插入到侧栏或主题允许的任何其他小部件区域中。

The plugin now supports a short code [wp-custom-author-image] you can use to directly add the image to the page or post content.

该插件现在支持短代码[wp-custom-author-image],您可以使用该代码直接将图像添加到页面或发布内容。

Alternatively, you can place the following call in the loop where you want the WP Custom Author Image to appear:

或者,您可以将以下调用放在希望WP Custom Author Image出现的循环中:

  <?php the_wp_custom_author_image($ author_id = null); 

?>

?>

This $author_id parameter is optional.

$ author_id参数是可选的。

If it is not passed in, the code will attempt to get the current author of the page/post.

如果未传递,则代码将尝试获取页面/帖子的当前作者。

A second version of this function exists whereby you can pass in width and height to display the image.

此功能的第二个版本存在,您可以在其中传递宽度和高度以显示图像。

  <?php the_wp_custom_author_image_size($ width,$ height,$ author_id = null); 

?>

?>

This $author_id parameter is optional.

$ author_id参数是可选的。

If it is not passed in, the code will attempt to get the current author of the page/post.

如果未传递,则代码将尝试获取页面/帖子的当前作者。

To configure your WP Custom Author Image, browse Users / Your Profile in the admin area.

要配置WP自定义作者图像,请在管理区域中浏览“用户” /“您的个人资料”。

Setting WP Custom Author Image Size

设置WP自定义作者图像大小

You can adjust the actual display size in the WP Custom Author Image widget or by using the_wp_custom_author_image_size function call.

您可以在WP Custom Author Image小部件中调整实际的显示大小,也可以使用_wp_custom_author_image_size函数调用来调整。

If you do not specify a size the width and height of the actual image will be used.

如果您未指定尺寸,则将使用实际图像的宽度和高度。

Shortcode

简码

    1. You can use [wp-custom-author-image] to display the uploaded WP Custom Author Image in your page/post content.
    2. 您可以使用[wp-custom-author-image]在页面/帖子内容中显示上载的WP Custom Author Image。

    Multi-Author Sites

    多作者网站

    For sites with multitudes of authors, the widget offers the ability to insert a link to the author’s posts — his archives.

    对于拥有大量作者的网站,该小部件提供了插入作者帖子(他的档案)的链接的功能。

    Single Author Sites

    单个作者站点

    Normally the widget will only display an WP Custom Author Image when it can clearly identify who the content’s author actually is.

    通常,该窗口小部件可以清楚地标识内容的作者实际是谁时,它只会显示WP自定义作者图像。

    In other words, on singular pages or in the loop.

    换句话说,是在单个页面上还是在循环中。

    If you run a single author site, or a site with multiple ghost writers, be sure to check the “This site has a single author” option.

    如果您运行一个作者站点,或者一个具有多个幽灵作者的站点,请确保选中“此站点只有一个作者”选项。

    The widget will then output your image at all times.

    然后该小部件将始终输出您的图像。

    Alternate About Page Link

    关于页面链接的替代方法

    Normally the widget will use the author’s posts page (/author/authorname/) is the image is clicked on.

    通常,在单击图像时,小部件将使用作者的帖子页面(/ author / authorname /)。

    If your site has a dedicated page for the author, such as an ‘About Me’ page,

    如果您的网站上有作者专用的页面,例如“关于我”页面,

    there is a new field in ‘Your Profile’ called ‘About Me Page’.

    “您的个人资料”中有一个名为“关于我的页面”的新字段。

    Entering a url in this field (/about-me/) will cause the widget to use this link as opposed to /author/authorname.

    在此字段中输入网址(/ about-me /)将使小部件使用此链接,而不是/ author / authorname。

    Retrieving Author Url

    检索作者网址

    You can retrieve the url to the respective WP Custom Author Image by calling the function

    您可以通过调用函数来检索相应的WP Custom Author Image的URL

      <?php the_wp_custom_author_image_url($ author_id = null); 

    ?>

    ?>

    If $author_id is blank the plugin will attempt to determine the current author and retrieve his/her image.

    如果$ author_id为空白,则插件将尝试确定当前作者并检索其图像。

安装步骤

    1. Upload the plugin folder to the /wp-content/plugins/ directory
    2. 将插件文件夹上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Make the wp-content folder writable by your server (chmod 777)
    6. 使 wp-content 文件夹可由服务器写入(chmod 777)

下载地址
https://downloads.wordpress.org/plugin/author-image.zip
收起阅读 »
<<<7290729172927293729472957296>>>