Title: Current User Posts
Author: Tiegan Benson
Published: <strong>2025 年 8 月 16 日</strong>
Last modified: 2026 年 5 月 24 日

---

搜索插件

![](https://ps.w.org/current-user-posts/assets/banner-772x250.png?rev=3546571)

![](https://ps.w.org/current-user-posts/assets/icon-256x256.png?rev=3546571)

# Current User Posts

 作者：[Tiegan Benson](https://profiles.wordpress.org/sagirisdev/)

[下载](https://downloads.wordpress.org/plugin/current-user-posts.0.2.0.zip)

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

 [支持](https://wordpress.org/support/plugin/current-user-posts/)

## 描述

Current User Posts lets you display posts created by the logged in user automatically
in a block theme.

This block is essential for creating member’s only areas on your website. Displaying
the posts of the current user dynamically is an industry-standard feature of online
membership systems, and Current User Posts brings that to the Block Editor.

### Usage

A valid user id is required for this block to work, so it must be placed in a context
that is only available to logged in users.

Only logged in users should be able to see the block.

### Donate

https://sagirisdev.com/donate

## 屏幕截图

[⌊A rudimentary example of the Current User Posts block against the Query Loop block.⌉⌊
A rudimentary example of the Current User Posts block against the Query Loop block
.⌉[

A rudimentary example of the Current User Posts block against the Query Loop block.

[⌊Using the block in the editor.⌉⌊Using the block in the editor.⌉[

Using the block in the editor.

## 区块

该插件提供了 1 个区块.

 *   Current User Posts Display the posts created by the current user.

## 安装

 * Upload the plugin files to the `/wp-content/plugins/current-user-posts` directory,
   or install the plugin through the WordPress plugins screen directly.

## 常见问题

### I see my posts show up in the block editor instead of the user’s.

That means the block is working. Since you are the current user when working in 
the block editor, your posts will be displayed in the block. When another user logs
in and views the block, they will see posts they created.

### Can I add, remove, or rearrange the inner blocks?

The block supports ONLY one instance of the Query Loop block inside of it. However,
you can change the blocks inside of the inner Query Loop block.

### I’ve inserted the block onto my page, but I’m not seeing my posts.

Make sure you have posts of the selected post type to display. If your selected 
pattern doesn’t contain a no-results block, you will not see a message alerting 
you that there aren’t any posts of that post type to display.

### The block says I need to log in to see my posts.

This block is only meant to be seen by registered users of the website, i.e. they
must be a WordPress user with a valid user account. Any visitor to the website who
isn’t logged in to an account will not be able to see posts in the block. The block
should only be visible to users after they have logged in.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Current User Posts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Tiegan Benson ](https://profiles.wordpress.org/sagirisdev/)

[帮助将「Current User Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/current-user-posts)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.2.0

 * Fix: block now returns complete markup when no user is logged in (previously 
   left an unclosed `<div>`).
 * Fix: PHP parse error caused by Unicode smart quotes in the main plugin file.
 * Fix: editor warning caused by React hooks being called conditionally in the query
   filter.
 * Fix: `setAttributes` is no longer called during render; the author sync now runs
   inside an effect.
 * Fix: the inner Query Loop’s `inherit` default is now `false` everywhere, so the
   author filter is never bypassed by archive context.
 * Fix: namespace resolution error for `WP_Block` in the render path.
 * Improvement: refactored into separate Plugin, Block_Registrar, and Block_Renderer
   classes.
 * Improvement: uses the optimised block registration APIs on WordPress 6.7+ and
   6.8+, with a fallback loop for earlier versions.

#### 0.1.0

 * Initial release.

## 额外信息

 *  版本 **0.2.0**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.7 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/current-user-posts/)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[current user](https://cn.wordpress.org/plugins/tags/current-user/)
   [members](https://cn.wordpress.org/plugins/tags/members/)[query](https://cn.wordpress.org/plugins/tags/query/)
   [user posts](https://cn.wordpress.org/plugins/tags/user-posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/current-user-posts/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/current-user-posts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/current-user-posts/reviews/)

## 贡献者

 *   [ Tiegan Benson ](https://profiles.wordpress.org/sagirisdev/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/current-user-posts/)