Content · Elementor

Custom Post Types Grid widget for Elementor

Custom Post Types Grid is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Custom Post Types Grid” in the Elementor panel.

Get King Addons

This page describes the PHP/JS for this widget — not a renamed stub. Install the free plugin from WordPress.org.

Get King Addons

What it actually does

Custom Post Types Grid is an Elementor widget in King Addons. Enable it under King Addons → Dashboard if it is off, then search for “Custom Post Types Grid” in the Elementor panel.

Custom Post Types Grid Widget (Free).

render() writes HTML data attributes: data-card-link.

Content is loaded with WP_Query in PHP (not a hardcoded list in the editor).

Some inspector controls are marked Pro in PHP (eicon-pro-icon / king-addons-pro-control). Those need King Addons Pro, not Elementor Pro.

The widget script reads data attributes: data-card-link.

How to add it in Elementor

  1. Install King Addons. Install Elementor and King Addons. Get King Addons from WordPress.org.
  2. Edit with Elementor. Open a page and click Edit with Elementor.
  3. Insert the widget. Search the panel for “Custom Post Types Grid”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Kng Post Type”, “Posts Number”, “Order By”, “Custom Field Key”. Style and Content tabs are listed on this page.

When to use it

Tip: After King Addons is active, type king in the Elementor search box to list every widget, including Custom Post Types Grid.

Inspector controls from this widget’s PHP

ControlWhat the code does
Query — Kng Post TypeInspector control `kng_post_type`.
Query — Posts NumberWP_Query `posts_per_page` — how many posts are fetched (min 1).
Query — Order ByThe chosen value is read in render() and applied on the front end.
Query — Custom Field KeyText inspector control (`kng_meta_key`).
Query — OrderThe chosen value is read in render() and applied on the front end. Options: Descending; Ascending.
Query — OffsetNumeric control (default 0, min 0).
Query — Include IDsComma-separated list of post IDs to include.
Query — Exclude IDsComma-separated list of post IDs to exclude.
Query — Taxonomy FiltersUse taxonomy:slug-one,slug-two; separate multiple taxonomies with semicolons.
Query — Show Featured ImageSwitcher inspector control (`kng_show_image`).
Query — Image SizeElementor image-size group (thumbnail, medium, large, full, custom).
Layout — ColumnsWrites CSS `grid-template-columns` onto the widget’s front-end markup. (default 3, min 1, max 6).
Layout — GapSpacing/size control (min 0, max 80).
Content — Show Meta (Author & Date)Switcher inspector control (`kng_show_meta`).
Content — Show ExcerptSwitcher inspector control (`kng_show_excerpt`).
Content — Excerpt Length (words)Numeric value used in this widget’s render/JS (default 18, min 5, max 80).
Content — Show Read MoreSwitcher inspector control (`kng_show_read_more`).
Content — Read More TextPrinted in the widget HTML from render().
Content — Make Card ClickableCard click is disabled inside the Elementor editor to avoid interfering with editing.
Animations — Hover AnimationThe chosen value is read in render() and applied on the front end. Options: None; Lift; Image Zoom; Tilt; Float; Scale & Fade.
Card — BackgroundWrites CSS `background-color` onto the widget’s front-end markup.
Card — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Card — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .king-addons-cpt-grid__card`.
Card — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup. (min 0, max 60).
Card — Box ShadowElementor box-shadow group for the selector. Selector: `{{WRAPPER}} .king-addons-cpt-grid__card`.
Card — Disable Box ShadowSwitcher inspector control (`kng_disable_card_shadow`).
Card — Disable Box Shadow on HoverSwitcher inspector control (`kng_disable_card_shadow_hover`).
Text — Title ColorWrites CSS `color` onto the widget’s front-end markup.
Text — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-cpt-grid__title`.
Text — Excerpt ColorWrites CSS `color` onto the widget’s front-end markup.
Text — Typography (Kng Excerpt Typography)Elementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-cpt-grid__excerpt`.
Meta — Meta ColorWrites CSS `color` onto the widget’s front-end markup.
Meta — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-cpt-grid__meta`.
Read More — ColorWrites CSS `color` onto the widget’s front-end markup.
Read More — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-cpt-grid__read-more`.

Content and Style tabs from this widget’s PHP, including repeater fields and group controls (typography, background, border, shadow). Elementor’s Advanced tab is core Elementor and is not listed here.

FAQ

Which Custom Post Types Grid options need King Addons Pro?

Controls marked with the Pro icon in this widget’s PHP. King Addons Pro is a separate license from Elementor Pro.

How do I add Custom Post Types Grid in Elementor?

Install King Addons and Elementor, edit a page, search the panel for “Custom Post Types Grid”, drag it onto the canvas, then set Content and Style.

Do I need Elementor Pro?

No. King Addons runs on free Elementor. Some King Addons options (for example template-in-accordion, extra popup conditions, parts of the template catalog) need King Addons Pro — not Elementor Pro.

Related content widgets

Get King Addons

One free plugin. 80+ Elementor widgets, 650+ templates, and 4,000+ sections. Search for Custom Post Types Grid after you activate it.

Get King Addons