header-logo
Learn how to use Wix to build your site and business.
Design and manage your site using intuitive Wix features.
Manage subscriptions, plans and invoices.
Run your business and connect with members.
Learn to purchase, connect or transfer a domain to your site.
Get tools to grow your business and web presence.
Boost your visibility with SEO and marketing tools.
Get advanced features to help you work more efficiently.
Find solutions, learn about known issues or contact us.
placeholder-preview-image
Improve your skills with our courses and tutorials.
Get tips for web design, marketing and more.
Learn to increase organic site traffic from search engines.
Build a custom site using our full-stack platform.
Get matched with a specialist to help you reach your goals.
placeholder-preview-image

CMS: Displaying Blog Posts in a Repeater or Table

5 min
In this article
  • Step 1 | Add a repeater or table
  • Step 2 | Add and connect a dataset
  • Step 3 | Connect the table or repeater to the dataset
  • Step 4 | Adjust the dataset settings
  • (Optional) Step 5 | Only show posts from a specific category
You can use the CMS (Content Management System) to display your blog posts within a table or a repeater. This gives you extra flexibility with the design of your blog posts. 
Important:
With this method of displaying blog posts in a repeater or table, visitors cannot comment on or 'like' blog posts.
Before you begin:
Screenshot of displaying blog posts in a repeater.

Step 1 | Add a repeater or table

Go the page in your editor where you want to display the blog posts. Then add a repeater or table to the page. Repeaters display content using various customizable elements such as text, images, and buttons. Tables allow you to display the content using rows and columns. Choose the element that best fits your needs for displaying the posts. 

Learn how to: 

Step 2 | Add and connect a dataset

Use a dataset to connect your repeater elements or table to the content in your blog collection. 
Wix Editor
Studio Editor
  1. Go to your editor and navigate to the relevant page.
  2. Click CMS  on the left. 
  3. Click Add Content Elements.
  4. Click Dataset
  5. Click the Choose a collection drop-down, scroll down past Wix App Collections and select Posts under the Blog Wix app collection.
Screenshot of selecting the Blog Posts Wix app collection.
  1. Enter a name for the dataset and click Create

Step 3 | Connect the table or repeater to the dataset

Connect the table or repeater's components (e.g., text, images, buttons) to specific fields in the dataset.
  1. Click the repeater or table in your editor. 
  2. Click the Connect to CMS icon .
  3. Click the Choose a dataset drop-down and select the dataset that connects to your blog posts collection. 
  4. Under Connections, connect the elements (for repeaters) or columns (for tables) to the relevant blog collection fields. View a full list of the Wix Blog 'Posts' collection fields.

Step 4 | Adjust the dataset settings

Fine-tune how the connected collection content interacts with your repeater or table. Make sure the dataset mode is set to 'Read'. You can add filters to show only certain posts and sorts to set the order in which the items load. If you're using a repeater, edit the Items per load field to control the number of items that initially load. Learn how to edit dataset settings.
For tables:
The Items per load field does not apply to tables. You can limit the number of items displayed by clicking the Layout icon , then setting a custom table height and enabling pagination. 
You may also want to add:

(Optional) Step 5 | Only show posts from a specific category

You may want to only show blog posts from a specific category in your table or repeater. To do so, add another dataset that connects to your blog 'Categories' collection and filters for the specific category. Then, add a filter to your 'Posts' dataset that uses the 'Categories' dataset to determine which category of blog posts to display. 
  1. Add another dataset and connect it to the blog Categories collection:
    1. Click CMS  on the left. 
    2. Click Add Content Elements.
    3. Click Dataset
    4. Click the Choose a collection drop-down, scroll down past Wix App Collections and select Categories under the Blog Wix app collection.  
    5. Enter a name for the dataset and click Create
Screenshot of connecting a dataset to the 'Categories' blog collection.
  1. Add a filter to your 'Categories' dataset: 
    1. Click + Add Filter in the dataset settings. 
    2. Enter the name of the category that you want to show in the Value field.
      Note: Leave the Field set to Label (Text), the Condition set to is, and the Value source set to Manual entry
    3. Click Add Filter
Screenshot of adding a filter to the 'Categories' dataset.
  1. Add a filter to your 'Posts' dataset that uses the 'Categories' dataset to determine which category of blog posts to display:
    1. Click View All Page Datasets at the bottom of the datasets panel on the right. 
    2. Click the More Actions icons next to your Posts dataset and select Dataset settings
    3. Click + Add Filter in the dataset settings.
    4. Click the Field drop-down and select Main Category (Categories).
      Note: Leave the Condition set to same as and the Dataset set to Categories dataset
    5. Click Add Filter
Screenshot of adding a filter to the 'Posts' dataset.
After adding this filter, your repeater or table should adjust to only show blog posts from the category you entered in the 'Categories' dataset filter.