# How to apply a bricks template to a custom post type?

**URL:** <https://forum.bricksbuilder.io/t/how-to-apply-a-bricks-template-to-a-custom-post-type/24083>\
**Category:** How To\
**Created:** [July 4, 2024, 2:27pm UTC](https://forum.bricksbuilder.io/t/how-to-apply-a-bricks-template-to-a-custom-post-type/24083 "2024-07-04T14:27:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oli](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/o/2bfe46/32.png) [@Oli](https://forum.bricksbuilder.io/u/Oli)\
**Post date:** [July 4, 2024, 2:27pm UTC](https://forum.bricksbuilder.io/t/how-to-apply-a-bricks-template-to-a-custom-post-type/24083/1 "2024-07-04T14:27:39Z")

</div>

Hello,

I’ve made a native custom post type (not with ACF) ‘event’ with 3 more fields:  
Location  
Date  
End date

I’ve created a single-event.php file in my bricks child theme with the content of the single.php file of the Bricks parent theme.

And I want to apply a bricks template I’ve buit for this custom post type (with the right conditions in the settings of the bricks template)

But it doesn’t render the event post with the bricks template…

How can I make this work ?

Regards,  
Olivier

---

<div class="post-metadata">

**Author:** ![Oli](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/o/2bfe46/32.png) [@Oli](https://forum.bricksbuilder.io/u/Oli)\
**Post date:** [July 5, 2024, 2:42pm UTC](https://forum.bricksbuilder.io/t/how-to-apply-a-bricks-template-to-a-custom-post-type/24083/2 "2024-07-05T14:42:36Z")

</div>

Hello,

I’ve found the problem : I haven’t published the bricks event template…

Now it’s OK.

---

<div class="post-metadata">

**Author:** ![tresorama](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@tresorama](https://forum.bricksbuilder.io/u/tresorama)\
**Post date:** [July 5, 2024, 8:55pm UTC](https://forum.bricksbuilder.io/t/how-to-apply-a-bricks-template-to-a-custom-post-type/24083/3 "2024-07-05T20:55:50Z")

</div>

Hi Oli,  
you don’t need to create a separate “single-event.php” to use Bricks to design the Event CPT page.

You need only to create a Bricks template of type “Single” and apply condition to it:

- Post Type =\> Event

happy building

---

<div class="post-metadata">

**Author:** ![Patric](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/p/4da419/32.png) [@Patric](https://forum.bricksbuilder.io/u/Patric)\
**Post date:** [July 6, 2024, 4:18am UTC](https://forum.bricksbuilder.io/t/how-to-apply-a-bricks-template-to-a-custom-post-type/24083/4 "2024-07-06T04:18:21Z")

</div>

Bricks is a pagebuilder. You don’t have to mess around with php files…

---

<div class="post-metadata">

**Author:** ![Oli](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/o/2bfe46/32.png) [@Oli](https://forum.bricksbuilder.io/u/Oli)\
**Post date:** [July 8, 2024, 1:21pm UTC](https://forum.bricksbuilder.io/t/how-to-apply-a-bricks-template-to-a-custom-post-type/24083/5 "2024-07-08T13:21:56Z")

</div>

Thanks, indeed, there’s no need of single-cpt.php file
