Title: By this Author
Author: racanu
Published: <strong>2015 年 1 月 22 日</strong>
Last modified: 2018 年 12 月 8 日

---

搜索插件

![](https://ps.w.org/by-this-author/assets/banner-772x250.jpg?rev=1073578)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/by-this-author_a38f89.svg)

# By this Author

 作者：[racanu](https://profiles.wordpress.org/racanu/)

[下载](https://downloads.wordpress.org/plugin/by-this-author.1.2.0.zip)

 * [详情](https://cn.wordpress.org/plugins/by-this-author/#description)
 * [评价](https://cn.wordpress.org/plugins/by-this-author/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/by-this-author/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/by-this-author/#developers)

 [支持](https://wordpress.org/support/plugin/by-this-author/)

## 描述

Sometimes in a website the articles are not authored by the respective registered
users but still need to be attributed to them somehow.

This plugin addresses this specific situation and offers a way to deal with it.

The idea is that articles are tagged with the names of people to which they should
be attributed.
 Thus, when making an author’s bio page a shortcode can be inserted
that will show a list of articles authored by or attributed to a registered user.
If the user later registers using the same name and starts publishing his/her own
posts, they will auto-magically be inserted in his bio page.

The shortcode is:

    ```
    [by-this-author name="name of the author" post_types="authored_by, attributed_to" posts_per_page=#]
    ```

_post\_types_ is optional and may contain one of or both keywords
 _posts\_per\_page_
is optional and specifies how many posts to display

There is no support for pagination so the only way of limiting very long pages is
to use the _posts\_per\_page_ parameter.

The plugin solves a very specific problem of a very specific website. It may be 
useful to someone else too.

A single translation file is provided for it_IT.

There are two other, unrelated, shortcodes included.

Age calculation

    ```
    [get-age ref_date="reference date" end_date="end date"]
    ```

Calculates the age (in years) since a reference date. The age is calculated until
the current moment, unless _end\_date_ is specified.
 This is meant to show ages
of people (possibly at the time of their death) but may also be used for other events
that have a start and maybe an end date.

_ref\_date_ is the date (typically in the past) to which the age refers
 _end\_date_
is optional and represents the date up to which the age is calculated (typically
in the past too but may also be in the future)

Time machine

    ```
    [time-machine ref_time="reference moment" future_text="text to show before ref_time" past_text="text to show after ref_time"]
    ```

Allows altering the text of the post based on the current moment relative to a reference
moment.

Suppose a post is published before an event, is should refer to that event in terms
of the future.
 However, after the time of the event (the reference time) has passed,
the same post should refer to the event in terms of the past. This simple change
avoids the post looking stale until you manually edit it to maybe add post-event
information.

_ref\_time_ is the date and time of the event; up until midnight after the event
it will show the future_text, then the past_text
 _future\_text_ is the text to 
show while the event is still in the future _past\_text_ is the text to show when
the event is in the past

## 安装

 1. Download the zip file, and use WordPress’ plugin installation page in the dashboard
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place the shortcode(s) you need in your post

## 评价

此插件暂无评价。

## 贡献者及开发者

「By this Author」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ racanu ](https://profiles.wordpress.org/racanu/)

[帮助将「By this Author」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/by-this-author)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/by-this-author/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/by-this-author/)，或通过[RSS](https://plugins.trac.wordpress.org/log/by-this-author/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/by-this-author/)。

## 更新日志

#### 1.0

 * First release.

#### 1.1.1

 * Updated “tested to” version to 4.5.3

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**8 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.1 或更高版本 **
 *  已测试的最高版本为 **5.0.25**
 *  语言
 * [English (US)](https://wordpress.org/plugins/by-this-author/)
 * 标签
 * [generate](https://cn.wordpress.org/plugins/tags/generate/)[list](https://cn.wordpress.org/plugins/tags/list/)
   [overview](https://cn.wordpress.org/plugins/tags/overview/)
 *  [高级视图](https://cn.wordpress.org/plugins/by-this-author/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/by-this-author/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/by-this-author/reviews/)

## 贡献者

 *   [ racanu ](https://profiles.wordpress.org/racanu/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/by-this-author/)