Our Template Builder feature (available in the Pro version) offers flexible layout options, but it does not support creating specific category archive pages. Therefore, this feature won’t fulfill that specific need.
However, if your theme or a third-party plugin like Elementor Pro supports custom category templates, you can still display Post Grid blocks on those pages without any issues.
Manual Method (Using Theme or Child Theme) #
For Gutenberg Theme: #
You can also achieve this manually by editing your theme or child theme files. Follow the steps below:
Step 1: Prepare the Block #
- Create a new page using Gutenberg.
- Add your desired Post Grid block.
- Set Post Source = “Current Query” in the block settings.
- Click the three-dot menu (top-right corner) and select Code Editor.
- Copy the entire block of code (you’ll need it in Step 3).
Step 2: Create a Category Template #
- In your theme or child theme folder, duplicate the archive.php file.
- Rename it to match the category slug. For example, for a movies category:
➤ Rename the file to: category-movies.php
Step 3: Insert the Block in the Template #
Open the category-movies.php file and replace the existing loop code with the following (update the $block variable with your copied block code):
if ( have_posts() ) {
$block = '<!-- wp:rttpg/tpg-grid-layout {"uniqueId":"f13664","post_type":"current_query"} /-->';
echo do_blocks( $block );
}
💡 Replace the $block content with the actual code you copied in Step 1.
For Classic Editor or Non-Gutenberg Themes: #
If your theme doesn’t support Gutenberg, you can still achieve this using a third-party plugin called User Grid.
Plugin URL – https://wordpress.org/plugins/user-grid/
Note: User Grid is a plugin that allows you to convert Gutenberg blocks into shortcodes. We’re using it here to embed a Post Grid block inside a PHP template.
Steps: #
- Install and activate the User Grid plugin.
- From the WordPress dashboard, go to User Grids → Add New User Grid.
- Create a new grid using your Gutenberg block (refer to Step 1: Prepare the Block above).
- Save the block. Then, navigate to the User Grid → Shortcodes tab in the right panel.
- Copy the generated shortcode.
- Now, follow Step 2: Create a Category Template as described earlier.
- Then, replace the loop in the template with the shortcode version:
if ( have_posts() ) {
echo do_shortcode( '[user_grid id="124190"]' );
}
✅ That’s it! #
Your custom category page is now ready and fully supports Post Grid blocks. This gives you full control over the layout and design using Gutenberg and your theme.