
外掛標籤
開發者團隊
原文外掛簡介
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.
