Title: Osom Blocks
Author: OsomPress
Published: <strong>2020 年 10 月 4 日</strong>
Last modified: 2025 年 12 月 16 日

---

搜索插件

![](https://ps.w.org/osomblocks/assets/banner-772x250.jpg?rev=3359012)

![](https://ps.w.org/osomblocks/assets/icon.svg?rev=3359012)

# Osom Blocks

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

[下载](https://downloads.wordpress.org/plugin/osomblocks.1.2.2.zip)

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

 [支持](https://wordpress.org/support/plugin/osomblocks/)

## 描述

Osom Blocks is a block to list Custom Post Types, ideally to use with OsomPress 
themes.

With Osom Custom Post Type Block you can display a list of CPT entries and customize:

1. The Custom Post Type. 2. Number of posts. 3. Display/hide the featured image.
4. Display/hide the excerpt. 5. Choose grid display 6. Choose the number of columns
for the grid layout 7. Choose the title HTML markup (H2, H3 or H4). 8. Customize
the “read more” text. 9. Display/hide parent post/pages (only in hierarchical Custom
Post Types). 10. Display/hide pagination.

### Deprecation Notice

**Important:** We want to inform you that the plugin will be deprecated in future
releases. For new sites we highly encourage you use the native query loop block,
which now supports listing of Custom Post Types seamlessly.
 We appreciate your 
understanding.

## 屏幕截图

 * [[
 * Osom Blocks settings posts
 * [[
 * Osom Blocks settings CPT
 * [[
 * Osom Blocks CPT grid layout
 * [[
 * Osom Blocks settings

## 区块

该插件提供了 1 个区块.

 *   Osom Custom Post Type Block

## 安装

This plugin can be installed directly from your site.

 1. Log in and navigate to _Plugins → Add New.
 2. Type “Osom Blocks” into the Search and hit Enter.
 3. Locate the Osom Blocks plugin in the list of search results and click **Install
    Now**.
 4. Once installed, click the Activate link.
 5. Now you have the new block available on editor.

It can also be installed manually.

 1. Download the Osom Blocks plugin from WordPress.org.
 2. Unzip the package and move to your plugins directory.
 3. Log into WordPress and navigate to the Plugins screen.
 4. Locate Osom Blocks in the list and click the _Activate_ link.
 5. Now you have the new block available on editor.

## 常见问题

### Can Osom Blocks be used with any theme?

Yes, you can use Osom Blocks with any theme.

### Do I need the new block editor to use Osom Blocks?

Yes, you will need to have WordPress 5.0 or later installed to take advantage of
Osom Blocks.

### Can I display any Custom Post Type?

Yes, all the CPT will automatically populate and you only need to choose it from
the dropdown.

### I’m seeing more posts than I selected in the settings, why is that?

If more posts than selected are displaying, make sure you activate “Ignore sticky
posts” toggle.

### I’m not seeing one (or more) Custom Post Type, why is that?

If you have created the CPT make sure you use the argument “show_in_rest” => true,
when registering. If it’s created by third party you can use the filter register_post_type_args
to add the support.

## 评价

![](https://secure.gravatar.com/avatar/4b28c3cae56de8c3f2a00a8a68977f380d54e232120c6a327220125b881b746f?
s=60&d=retro&r=g)

### 󠀁[Muy sencillo y muy práctico](https://wordpress.org/support/topic/muy-sencillo-y-muy-practico/)󠁿

 [Tino Santana](https://profiles.wordpress.org/tinosantana/) 2021 年 4 月 27 日

Justo lo que necesitaba y llevaba tiempo buscando en otros bloques. Al instalarlo
no reconocía mi CPT, porque entre los atributos del mismo no había puesto: ‘show_in_rest’
=> true. Después de modificar mi CPT con este atributo se quedó perfecto, lo menciono
por si a alguien le pasa lo mismo que a mi. Muchas gracias a los desarrolladores
por esta nueva aportación.

![](https://secure.gravatar.com/avatar/78e9cf3fd8f40fbe886e119b26c27355a17486a877e1ccf05db74dfe88875286?
s=60&d=retro&r=g)

### 󠀁[Excelente y un imprescindible](https://wordpress.org/support/topic/excelente-y-un-imprescindible/)󠁿

 [Carlos Longarela](https://profiles.wordpress.org/carloslongarela/) 2021 年 1 月
10 日

Lo mejor de este plugin es que una funcionalidad tan básica como listar nuestros
CPTs en lista o rejilla y que no incorpora de serie Gutenberg, la implemente de 
una forma limpia, eficiente y con las suficientes opciones para que este plugin 
pase a ser uno de mis imprescindibles en mis instalaciones de WordPress. Que además
esté desarrollado por dos prominentes miembros de la comunidad, es para mi mi una
excelente garantía de compatibilidad, mantenimiento y soporte.

![](https://secure.gravatar.com/avatar/259f984f44ab4c7a2b7e8fcfbf7477fcf800b80ed273038691cb114805ad7346?
s=60&d=retro&r=g)

### 󠀁[Sencillo y funcional](https://wordpress.org/support/topic/sencillo-y-funcional-9/)󠁿

 [Juan María Arenas](https://profiles.wordpress.org/jmarenas/) 2020 年 11 月 20 
日

Es un plugin muy sencillo, pero que viene genial cuando quieres mostrar entradas
de CPT. Todas las soluciones que encontraba tenían algún problema y este plugin,
pese a faltarle aun mejoras, lo hace todo bien! Y el soporte de 10, les notifiqué
un pequeño error y tardaron nada en identificarlo y solucionarlo.

![](https://secure.gravatar.com/avatar/08efcc3a488028d542e1e55076fe8a1d089a04a39ce31c540b9b1a5fc68a0584?
s=60&d=retro&r=g)

### 󠀁[Awesome blocks that eliminates the needs to learn PHP](https://wordpress.org/support/topic/awesome-blocks-that-eliminates-the-needs-to-learn-php/)󠁿

 [Josue Zarco](https://profiles.wordpress.org/josuezarco/) 2020 年 10 月 16 日

This plugin is just perfect. I have a few Custom Post Types that I cannot add them
to an archive page without learn some PHP. Thanks to this plugin we can display 
a list of CPT entries and customize as follows. 1. The Custom Post Type. 2. Number
of posts. 3. Display/hide the featured image. 4. Choose the title HTML markup (H2,
H3 or H4). 5. Customize the “read more” text. Without ONE line of code. I cannot
be more thankfully!

![](https://secure.gravatar.com/avatar/02646556e4baed782bbad6c41c7a5228824028009159ed15c65174776e880609?
s=60&d=retro&r=g)

### 󠀁[Útil por si solo](https://wordpress.org/support/topic/util-por-si-solo/)󠁿

 [goiblas](https://profiles.wordpress.org/goiblas/) 2020 年 10 月 13 日

Funciona perfectamente aunque no utilices un tema de OsomPress, te permite hacer
un listado de cualquier post type y personalizar el nivel de encabezado para tener
una buena jerarquía encabezados

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/osomblocks/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ OsomPress ](https://profiles.wordpress.org/osompress/)
 *   [ esther sola ](https://profiles.wordpress.org/esther_sola/)
 *   [ Nahuai Badiola ](https://profiles.wordpress.org/nahuai/)

「Osom Blocks」插件已被翻译至 5 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/osomblocks/contributors)
为本插件所做的贡献。

[帮助将「Osom Blocks」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/osomblocks)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.2

 * Security fix.

#### 1.2.1

 * Fixed pagination behavior in home page.

#### 1.2

 * Tested on WordPress 5.9.
 * Added filter to modify the loop arguments (osom_blocks_args).

#### 1.1.2

 * Added responsive break points to the grid layout.

#### 1.1.1

 * Added: ClassName
 * Changed text domain for some strings

#### 1.1

 * This version adds most of the most popular request we’ve received so far.
 * New: Now CPTs are auto-populated and you can select them from the dropdown
 * Added: possibility to filter by tags or categories when “post” is selected
 * Added: display/hide parent posts toggle (only in hierarchical CPTs)
 * Added: setting to chose the number of columns when grid layout is selected
 * Added: display/hide sticky posts toggle
 * Added: display/hide pagination toggle

#### 1.0.2

 * Added: grid layout
 * Fixed: HTML tags issue

#### 1.0.1

 * Added: translations

#### 1.0

 * Initial release.
    - Add the Customizable Button block.
    - Includes Custom Post Type Block

## 社区插件

该插件由社区开发和支持。

## 额外信息

 *  版本 **1.2.2**
 *  最后更新：**6 月前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 5.3 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/osomblocks/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/osomblocks/)、
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/osomblocks/) 、 [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/osomblocks/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/osomblocks/) 和 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/osomblocks/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/osomblocks)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[block-enabled](https://cn.wordpress.org/plugins/tags/block-enabled/)
   [blocks](https://cn.wordpress.org/plugins/tags/blocks/)[custom post type](https://cn.wordpress.org/plugins/tags/custom-post-type/)
   [editor](https://cn.wordpress.org/plugins/tags/editor/)
 *  [高级视图](https://cn.wordpress.org/plugins/osomblocks/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/osomblocks/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/osomblocks/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/osomblocks/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/osomblocks/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/osomblocks/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/osomblocks/reviews/)

## 贡献者

 *   [ OsomPress ](https://profiles.wordpress.org/osompress/)
 *   [ esther sola ](https://profiles.wordpress.org/esther_sola/)
 *   [ Nahuai Badiola ](https://profiles.wordpress.org/nahuai/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/osomblocks/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://osompress.com)