跳到内容

Shihabiiuc Post Grid

v1.0.0

Shihab Ul Hoque · 2026年11月26日 上架

Show your latest blog posts in a clean card grid or masonry layout. Works with Elementor, the block editor, and any theme via shortcode.

正在使用
10 以下
评分
暂无
累计下载
0
最近更新
2026年11月26日
需要 WordPress 6.3+已测试到 7.1.5PHP 7.4+

截图

Gutenberg block: equal-height grid with a custom button color, and the block's color and button settings.
Gutenberg block: equal-height grid with a custom button color, and the block's color and button settings.
Gutenberg block: masonry layout with 4 columns, where images keep their original proportions.
Gutenberg block: masonry layout with 4 columns, where images keep their original proportions.
Elementor widget: content settings (number of posts, layout, columns, excerpt length, button text).
Elementor widget: content settings (number of posts, layout, columns, excerpt length, button text).
Elementor widget: style options, here changing the button background color.
Elementor widget: style options, here changing the button background color.

Shihabiiuc Post Grid shows your newest blog posts as cards. Each card has a featured image, the post title, a short excerpt and a “Read More” button. The image, title and button all link to the post.

It works almost anywhere:

  • Elementor: drag the Shihabiiuc Post Grid widget onto your page.
  • Block editor (Gutenberg): add the Shihabiiuc Post Grid block.
  • Any other theme or page builder: use the [shihabiiuc_post_grid] shortcode.

Elementor is not required. If Elementor is installed, the widget appears automatically.

Features

  • Shows the 3 latest posts by default. You can show 1 to 24.
  • Equal-height grid: images are cropped to 1200 × 628 from the center and the buttons line up.
  • Masonry grid: images keep their original proportions.
  • 1 to 4 columns. Tablets show up to 2 columns and phones show 1.
  • Excerpt length in words (30 by default, or 0 to hide it).
  • Filter by category, skip the newest posts (offset), and hide the post being viewed on single post pages.
  • Custom “Read More” text, with a right-chevron icon.
  • Change the title color and size, excerpt color and size, and the button background, text color, padding and font size.
  • Card border (1px solid #cfcfcf by default), border radius, padding, background and gap are all editable.
  • A built-in placeholder image for posts without a featured image.
  • Lightweight: one small stylesheet that loads only where the grid is used, and no JavaScript on the front end.
  • Translation ready.

Shortcode

The basic shortcode shows the 3 latest posts:

[shihabiiuc_post_grid]

Every option is available as an attribute:

[shihabiiuc_post_grid posts="6" columns="3" layout="masonry" excerpt_words="20" category="news,tips" offset="0" exclude_current="yes" read_more_text="Continue reading" title_color="#111111" title_font_size="22" excerpt_color="#555555" excerpt_font_size="15" button_bg="#ff6600" button_color="#ffffff" button_font_size="14" button_padding="10px 22px"]

Content attributes

  • posts: number of posts, 1–24. Default 3.
  • columns: desktop columns, 1–4. Default 3.
  • layout: grid (equal height, cropped images) or masonry. Default grid.
  • excerpt_words: excerpt length in words, 0–100. Default 30.
  • category: category slugs or IDs, separated by commas. Default: all categories.
  • offset: number of newest posts to skip. Default 0.
  • exclude_current: yes or no. Hides the post being viewed. Default yes.
  • read_more_text: button text. Default Read More.
  • title_tag: h2, h3, h4, h5, h6, p or div. Default h3.

Style attributes (colors are hex or rgb/rgba; a number without a unit means pixels)

  • title_color, title_font_size
  • excerpt_color, excerpt_font_size
  • button_bg, button_color, button_font_size, button_padding (for example 10px 22px)
  • card_bg, border_color, border_width, border_radius, card_padding, gap

Need a custom WordPress website?

This plugin is built and maintained by Shihab, a WordPress developer. If you need a custom theme, plugin or Elementor website, get in touch or visit shihabiiuc.com.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums