Skip to main content

Search Divi Plus Documentation

Search for answers or browse our knowledge base.
Explore Divi Plus's Live Demo

Print

Filterable CPT Grid

How to add the Filterable CPT Grid module to your page and explains every setting. This module shows posts from any post type (posts, pages, products or a custom post type) in a grid. Visitors can filter the grid with term buttons, or with a search box and taxonomy dropdowns, without reloading the page. For more details, view the demo.

Filtering WooCommerce products by category in the Filterable CPT Grid
Products filtered by category with the filter buttons.

Note: The Filterable CPT Grid module works with Divi 5 only. If you don’t see it in the module list, go to Divi Extended → Divi Plus → General → Modules, turn on Filterable CPT Grid and save.

How to add the module

  1. Open your page in the Divi Visual Builder.
  2. Click the (+) icon inside a row to add a new module.
  3. Search for DP Filterable CPT Grid in the module search box.
  4. Click the module to insert it. Its settings open on the right.
Adding the DP Filterable CPT Grid module in the Divi Visual Builder
Search for DP Filterable CPT Grid in the Insert Module window.

Content tab

The Content tab chooses which posts to show, the layout, the elements on each card, the filter and the pagination.

DP Filterable CPT Grid Content tab
DP Filterable CPT Grid: Content tab.

Content tab: Content

  • Post type: Here you can choose the post type to display in the grid.
  • Include terms: This shows one list for each taxonomy of the chosen post type, for example Include product brands and Include product categories. Choose which terms to show posts from. A parent term includes its child terms.
  • Posts per page: Here you can input the number of posts shown at once, from 1 to 100. With pagination this is the number per page.
  • Post offset number: Choose how many posts you would like to skip. These posts will not be shown in the grid. The offset does not apply once a visitor filters or searches.
  • Order by: Here you can choose how the posts are sorted. Random keeps one order while paging through the grid. Options: Date, Modified date, Title, Menu order, ID, Comment count and Random.
  • Order: Here you can choose the order of your results. Options: DESC and ASC.
  • Exclude post IDs: Here you can enter the IDs of posts to leave out, separated by commas.
  • Exclude current post: Here you can choose whether or not to leave out the post being viewed, for example in a Theme Builder template.
  • Author IDs: Here you can enter author IDs, separated by commas, to show only their posts. Leave empty for all authors.
  • No result text: Here you can define the text shown when no posts match.
Filterable CPT Grid Content settings
Content tab: Content.

Content tab: Layout

  • Layout: Here you can choose the layout of the posts. Options: Classic card, Overlay, Side list and Featured first post.
  • Columns: Here you can choose the number of columns.
  • Column gap: Increase or decrease the space between columns.
  • Row gap: Increase or decrease the space between rows.
  • Masonry: Here you can choose whether or not posts of different heights are stacked without gaps.
  • Equal height: Here you can choose whether or not posts in a row have the same height, with the buttons lined up at the bottom.
Filterable CPT Grid Layout settings
Content tab: Layout.
Filterable CPT Grid Overlay layout
Layout: Overlay.
Filterable CPT Grid Side List layout
Layout: Side list.
Filterable CPT Grid Featured First Post layout
Layout: Featured first post.

Content tab: Elements

  • Show featured image: Here you can choose whether or not to display the featured image. Hide it for a text-only card.
  • Image size: Here you can choose the image size loaded. A smaller size loads faster. Options: Thumbnail, Medium, Medium large, Large and Full.
  • Lazy load images: Here you can choose whether or not images load only when they come near the screen. Turn it off for a grid at the top of the page.
  • Zoom image on hover: Here you can choose whether or not the image zooms in slightly on hover.
Filterable CPT Grid Elements settings
Content tab: Elements.

Content tab: Elements text

  • Show title: Here you can choose whether or not to display the title.
  • Show terms: Here you can choose whether or not to display the terms of each post.
  • Terms taxonomy: Here you can choose which taxonomy’s terms are shown on each post.
  • Show date: Here you can choose whether or not to display the publish date.
  • Date format: Here you can input a PHP date format, such as M j, Y. Leave empty for the site’s date format.
  • Show author: Here you can choose whether or not to display the author name.
  • Show excerpt: Here you can choose whether or not to display the excerpt.
  • Excerpt length: Here you can define the excerpt length in characters. The manual excerpt is shortened to this length too.
Filterable CPT Grid Elements text settings
Content tab: Elements text.

Content tab: Elements button

  • Show read more button: Here you can choose whether or not to display the read more button.
  • Button text: Here you can input the text of the read more button.
  • Button link target: Here you can choose whether or not the button opens the post in a new tab. Options: In the same window and In the new tab.
Filterable CPT Grid Elements button settings
Content tab: Elements button.

Content tab: Filter

  • Filter: Here you can choose how visitors filter the posts: none, a row of term buttons for one taxonomy, or a search form with a search box and a dropdown for each chosen taxonomy. Options: Hide / none, Filter buttons and Search form.
  • Filter by: Here you can choose the taxonomy the buttons filter by: categories, tags or any other taxonomy of this post type.
  • Filter terms: Here you can enter the slugs of the terms to show as buttons, separated by commas. Slugs stay the same when the design is moved to another site. Leave empty to show every term.
  • All button text: Here you can define the text of the button that shows all posts.
  • Show child terms on click: Here you can choose whether child terms appear in their own row once their parent is clicked. When off, every term is shown in one row.
  • Hide empty terms: Here you can choose whether or not terms without posts are left out of the filter.
  • Filter alignment: Here you can choose how the filter is aligned.
  • Sticky filter: Here you can choose whether or not the filter stays at the top of the screen while scrolling through the grid. You can set it for each device, for example off on phones.
Filterable CPT Grid Filter settings
Content tab: Filter.
Filterable CPT Grid with the search form
Filter: Search form, with a search box and a category dropdown.

Content tab: Pagination

  • Pagination type: Here you can choose how more posts are loaded. All types load without reloading the page. Options: None, Numbered, Load more button and Infinite scroll.
Filterable CPT Grid Pagination settings
Content tab: Pagination.

The Link, Background and Meta groups are the standard Divi options.

Design tab

The Design tab styles the card, content box, image, terms, title, date and author, excerpt, read more button and the filter bar and buttons.

DP Filterable CPT Grid Design tab
DP Filterable CPT Grid: Design tab.

Design tab: Card

  • Background color: Here you can select the background color of each post card.
Filterable CPT Grid Card settings
Design tab: Card.

Design tab: Content box

  • Background color: Here you can select the background color of the area holding the text and button.

Use the standard Divi spacing settings to style the content box.

Filterable CPT Grid Content box settings
Design tab: Content box.

Design tab: Image

  • Image ratio: Here you can choose the shape of the image. Original keeps each image’s own proportions.
  • Image border radius: Here you can control the corner radius of this element. Enable the link icon to control all four corners at once, or disable to define custom values for each.

Use the standard Divi border and box shadow settings to style the image.

Filterable CPT Grid Image settings
Design tab: Image.

Design tab: Terms

  • Background color: Here you can select the background color of the term labels.
Filterable CPT Grid Terms settings
Design tab: Terms.

Design tab: Title text

Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) to style the title text.

Filterable CPT Grid Title text settings
Design tab: Title text.

Design tab: Date and author text

Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) to style the date and author text.

Filterable CPT Grid Date and author text settings
Design tab: Date and author text.

Design tab: Excerpt text

Use the standard Divi text settings (font, weight, size, color, line height, letter spacing, alignment and more) to style the excerpt text.

Filterable CPT Grid Excerpt text settings
Design tab: Excerpt text.

Design tab: Read more button

Use the standard Divi button settings (text, background, border, font, icon and spacing) to style the read more button.

Filterable CPT Grid Read more button settings
Design tab: Read more button.

Design tab: Filter bar

Use the standard Divi background, spacing and border settings to style the bar that holds the filter.

Filterable CPT Grid Filter bar settings
Design tab: Filter bar.

Design tab: Filter buttons

  • Background color: Here you can select the background color of the filter buttons.
Filterable CPT Grid Filter buttons settings
Design tab: Filter buttons.

Design tab: Filter buttons active

  • Active background color: Here you can select the background color of the selected filter button.
  • Active text color: Here you can select the text color of the selected filter button.
  • Active border color: Here you can select the border color of the selected filter button. It shows only when the buttons have a border.
Filterable CPT Grid Filter buttons active settings
Design tab: Filter buttons active.

The Sizing, Spacing, Border, Box shadow, Filters, Transform and Animation groups are the standard Divi design options.

Advanced tab

The Advanced tab has the standard Divi options: CSS ID and classes, custom CSS, attributes, conditions, visibility, transitions, position and scroll effects.

DP Filterable CPT Grid Advanced tab
DP Filterable CPT Grid: Advanced tab.
Table of Contents