Skip to content
Sign in

Dynamic Post Grid – Shortcode Builder and Widget for Elementor

Show posts, pages or WooCommerce products as a grid, masonry, list or slider.

Not scanned yet WordPress plugin 20 installs

Install in

No install steps yet

Follow the steps on the source page.

Dynamic Post Grid shows your posts, pages, custom post types or WooCommerce products as a grid, masonry, list or slider. You design the grid once in the admin and display it with a shortcode, or you place it with the Elementor widget.

There are two ways to use it:

  • Grid Shortcodes (no page builder needed): go to Grid Shortcodes > Add New, choose the post type and categories, set columns and layout, arrange what each card shows, then copy the shortcode [depg_grid id="123"] into a page, post or widget area.
  • Elementor widget: add the Post Grid widget (in the “Post Grid” group of the Elementor panel) and style it with Elementor’s controls. Requires Elementor 3.0 or higher.

What you can do

  • Layouts: grid, masonry (CSS columns), list and slider.
  • Choose columns (1 to 4), number of posts, order and order by.
  • Build each card from layout elements: thumbnail, title, meta, excerpt, read more, terms, divider, spacer, custom HTML, button, price, rating, custom field.
  • 10 hover effects for thumbnails.
  • 8 style presets, and save your own presets.
  • Category filter buttons that update the grid without a page reload.
  • Load More button, or infinite scroll.
  • WooCommerce products with price, rating and sale badge elements.
  • Advanced query settings: taxonomy queries, date range, author, search, include and exclude IDs, post status, meta query.
  • Grid output is cached for one hour and cleared when you save a post.

Known limits

The AJAX filter and Load More use the settings saved in the Grid Shortcodes builder. Attributes you add in the shortcode itself (for example per_page or layout_mode) apply to the first page load but not to later AJAX loads.

External services

The plugin loads the Swiper library (JavaScript and CSS) from the jsDelivr CDN: https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js and https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css. It requests these files on front-end pages, so your visitors’ browsers contact jsDelivr and it receives their IP address and the usual request headers. No other data is sent. Service: https://www.jsdelivr.com. Terms: https://www.jsdelivr.com/terms. Privacy: https://www.jsdelivr.com/terms/privacy-policy-jsdelivr-net.

Shortcode Reference

Basic usage

[depg_grid id="123"]

All attributes

[depg_grid id="123" layout_mode="grid" columns="3" per_page="6" orderby="date" order="DESC" filter="yes" filter_tax="category" load_more="yes" infinite_scroll="yes"]

Attribute
Type
Default
Description

id
integer
(required)
Shortcode post ID

layout_mode
string
grid
Layout mode: grid, masonry, list, or slider

columns
integer
3
Number of columns (1-4)

per_page
integer
6
Posts per page (-1 for all)

orderby
string
date
Sort by: date, title, ID, modified, rand, menu_order

order
string
DESC
Sort direction: ASC or DESC

filter
string
no
Show filter buttons: yes, 1, or true

filter_tax
string
auto
Taxonomy for filter buttons

load_more
string
no
Show Load More button: yes, 1, or true

infinite_scroll
string
no
Enable infinite scroll: yes, 1, or true

Written by Joobi from the project's own listing. See the source page

elementormasonrypost gridpost sliderposts grid
21 Nov 2026
Version 1.9.1 released. Not scanned yet.

1.9.1

  • Compatibility: tested with WordPress 7.1.

1.9.0

  • [Feature] Advanced Query Tab — full WP_Query control from the Shortcode Builder (no code needed).
  • [Feature] Taxonomy Query repeater — filter by multiple taxonomies and terms with AND/OR relation.
  • [Feature] Date Query — filter posts by date range (after/before) or year/month/day.
  • [Feature] Author, Search, Include IDs, Post Status, and Has Password filters.
  • [Fix] Advanced query settings (exclude, offset, post_parent, ignore_sticky_posts, meta_query) now actually apply to WP_Query — previously saved but never used.
  • [Fix] AJAX filter now applies all advanced query filters (was previously ignored in AJAX requests).
  • [Fix] Removed dead has_password code that checked === '0' and never triggered.
  • [Fix] Taxonomy query merge with existing category filter now preserves all clauses correctly.
  • [Fix] Date query month/day save edge case (value 0 was saved instead of empty).
  • [Performance] Extracted shared apply_advanced_query_filters() method for reuse across render paths.
  • [Testing] Added standalone test suite with 21 test cases covering all advanced query filters.

1.8.0

  • [Feature] Plugin renamed to “Dynamic Post Grid – Gutenberg Blocks, Shortcodes & Elementor Addon” for better SEO and discoverability.
  • [Fix] Gutenberg blocks not rendering in editor — removed conflicting editorScript/editorStyle from block.json, script loading now handled via enqueue_block_editor_assets.
  • [Fix] Slider layout not working in shortcode — shortcode renderer now falls back to saved slider_settings when layout_mode is slider.
  • [Fix] Swiper CSS/JS not loading — moved Swiper enqueue from render_slider() (too late, after wp_head) to enqueue_assets() (before wp_head).
  • [Fix] Slider navigation broken on first page load with filter enabled — removed fragile inline script, Swiper now initializes via depg-filter.js on DOMContentLoaded and window.load.
  • [Fix] AJAX filter now re-initializes Swiper after replacing slider content.
  • [Fix] Case-sensitivity bug in depg-filter.js — DEPG_Filter vs DEPG_FILTER caused ReferenceError on frontend.
  • [Fix] Cache stale after settings change — cache key now includes layout_mode and columns, ensuring different settings produce different cache entries.
  • [Fix] block.json trailing commas — removed invalid trailing commas from all 4 block.json files.
  • [Tweak] depg-filter.js now depends on Swiper script to guarantee load order.
  • [Tweak] Slider config stored as data attributes on container instead of inline script.

1.7.0

  • [Feature] Gutenberg Blocks — 4 native blocks: Dynamic Post Grid, Dynamic Post List, Dynamic Post Masonry, and Dynamic Post Filter.
  • [Feature] Numbered pagination — AJAX-powered page links with prev/next, ellipsis, and current page indicator.
  • [Feature] Dropdown filter style — compact dropdown alternative to filter buttons.
  • [Feature] URL deep-linking — filter state persists in browser URL (?depg_123=456) for shareable filtered views.
  • [Feature] Browser back/forward support — navigation history restores filter state automatically.
  • [Feature] 3 new grid presets — Magazine (large first + 2-col), Card Overlay (image + title overlay), Title List (compact title-focused).
  • [Feature] Filter Style selector — choose between Buttons or Dropdown in Shortcode Builder and Gutenberg blocks.
  • [Feature] Standalone Filter block — place a filter bar anywhere on the page, connected to any grid.
  • [Feature] Pagination attribute — [depg_grid id="123" pagination="numbers"] for shortcode override.
  • [Feature] Review prompt — admin notice after creating 3+ grids, with one-click dismiss.
  • [Feature] Infinite Scroll pagination — automatic loading via Intersection Observer, configurable threshold.
  • [Feature] Slider layout mode — moved from block palette to layout mode selector with dedicated options card.
  • [UI] Pagination Mode selector — None, Numbered, Load More, or Infinite Scroll (4 options).
  • [UI] Complete Shortcode Builder redesign — modern 5-tab interface (Query, Layout, Builder, Style, Advanced).
  • [UI] Visual layout mode cards with icons for Grid, Masonry, List, and Slider.
  • [Fix] REST API now includes pagination_mode and slider_settings in response.
  • [Fix] Cache key now differentiates between pagination modes.
  • [Fix] Fixed JavaScript variable redeclaration bug in frontend filter JS.
  • [Fix] Cache clear AJAX action now uses its own dedicated nonce instead of reusing the presets nonce.
  • [Fix] Cache invalidation now uses tracked keys with delete_transient() instead of raw SQL, ensuring proper clearing when object caching (Redis/Memcached) is active.

1.6.0

  • [Feature] Masonry layout mode — Pinterest-style CSS column layout, responsive (3/2/1 columns).
  • [Feature] List layout mode — horizontal layout with featured image on left, content on right, responsive stacking on mobile.
  • [Feature] 10 thumbnail hover effects — Zoom In, Zoom Out, Grayscale to Color, Blur, Brightness, Overlay Fade, Overlay Slide Up, Overlay Slide Left, Overlay Scale, Border Draw.
  • [Feature] Transient-based caching for grid output (1 hour default, filterable).
  • [Feature] Auto cache invalidation on post save, delete, and status change.
  • [Feature] “Clear All Grid Cache” button in Shortcode Builder.
  • [Feature] REST API endpoint — GET /wp-json/depg/v1/grid/{id} for headless/decoupled usage.
  • [Feature] Abilities API — 5 AI-agent-ready abilities for WordPress 6.9+ (render-grid, get-grid-data, create-shortcode, export-layout, import-layout).
  • [Feature] Shortcode attribute layout_mode — override layout mode via [depg_grid id="123" layout_mode="masonry"].
  • [Fix] Exclude IDs, Offset, Ignore Sticky Posts, Post Parent, and Meta Query fields now save correctly in the Shortcode Builder.
  • [Fix] $featured_image undefined variable notice for posts without thumbnails in REST API response.
  • [Fix] Help page now documents current shortcode attributes instead of legacy Elementor widget attributes.
  • [Security] Abilities API — all block types individually sanitized with proper escaping (wp_kses_post for HTML, esc_url_raw for URLs, sanitize_key for keys, etc.).
  • [Security] Abilities API — import-layout now passes blocks through sanitize_block_for_ability() before storage.
  • [Security] Abilities API — block type whitelist prevents unknown types from being stored.
  • [Security] Abilities API — layout_mode values sanitized with sanitize_key() in create-shortcode and import-layout.
  • [Security] Admin save logic — layout_mode sanitized with sanitize_key() on save.
  • [UI] Admin form modernized with flexbox grid layout (no more table-based form).
  • [UI] Renamed “Query Settings” to “Post Query” for clarity.
  • [Performance] Cache layer reduces database queries for repeated grid renders.

1.5.0

  • [Feature] AJAX category filtering — category filter buttons that reload posts without page refresh.
  • [Feature] Load More pagination — AJAX-powered load more button with remaining post count.
  • [Feature] Reset to Default — one-click reset in the layout builder restores the default block configuration.
  • [Feature] New filter, filter_tax, and load_more shortcode attributes.
  • [Feature] Frontend filter and load more settings configurable from the Shortcode Builder UI.
  • [UI] Redesigned Post Query section with modern flexbox form grid layout.
  • [UI] Renamed “Query Settings” to “Post Query” for clarity.
  • [Fix] Removed unused auto-preset detection that cleared the dropdown on block changes.

1.4.0

  • [Feature] Slider carousel block — Swiper 11 carousel with configurable slides per view, autoplay, loop, arrows, and dots.
  • [Feature] Button block — customizable text, optional custom URL, and target selection.
  • [Feature] Price block — WooCommerce product price with optional prefix/suffix.
  • [Feature] Rating block — WooCommerce star rating with optional review count.
  • [Feature] Custom Field block — display any post meta value with an optional label.
  • [Fix] Shortcode builder now works without Elementor.
  • [Fix] Meta block date checkbox label missing opening tag in JS palette template.

1.3.0

  • [Feature] Standalone Shortcode Builder with visual drag-and-drop layout blocks.
  • [Feature] 8 built-in style presets and custom user presets.
  • [Feature] Category/taxonomy filtering in the shortcode builder.
  • [Fix] Block settings now save correctly on every input change.
  • [Fix] Block settings keys map correctly between JS and PHP.

1.2.6

  • [Fix] Restore Slick core stylesheet registration.
  • [Fix] Respect taxonomy relation setting and harden term markup escaping.

1.2.5

  • [Fix] Add to Cart button icon overwrite fix.

1.2.4

  • [Fix] Category, tag, and status-based filtering issues.
  • [Style] Product grid, list, and slider layout improvements.

1.2.3

  • [Fix] Product grid bug fix.
  • [Style] CSS updates.

1.2.2

  • [Feature] WooCommerce product grid support with layout template.

1.0.0

  • Initial release.
13 May 2024Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)