Osom Blocks – Gutenberg Blocks Collection

Mô tả

Osom Blocks is a new Gutenberg blocks collection, 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.

Follow Along:

Ảnh màn hình

  • Osom Blocks settings posts
  • Osom Blocks settings CPT
  • Osom Blocks CPT grid layout
  • Osom Blocks settings

Block

This plugin provides 1 block.

  • Osom Blocks - Gutenberg Blocks Collection

Cài đặt

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.

Hỏi đáp

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.

Đánh giá

27 Tháng Tư, 2021
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.
10 Tháng Một, 2021
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.
20 Tháng Mười Một, 2020
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.
16 Tháng Mười, 2020
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!
13 Tháng Mười, 2020
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
Đọc tất cả 5 đánh giá

Người đóng góp & Lập trình viên

“Osom Blocks – Gutenberg Blocks Collection” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Osom Blocks – Gutenberg Blocks Collection” đã được dịch qua 3 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Osom Blocks – Gutenberg Blocks Collection” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

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