Custom post type template - add a custom block to it

I’m working on a custom post type template, and wondering how/if I can add a global block in to the template file… any tips?
Thanks in advance!

Hello Steve,

Thanks for writing in!

If you already have your custom post type template, you can add this line to display a global block into your template:

<?php echo do_shortcode('[cs_gb id=123]'); ?>

Please make sure that you have added the correct Global block shortcode into the code.

We would loved to know if this has work for you. Thank you.

Thanks! That worked. I added the code right after the
<?php x_get_view( 'global', '_content', 'the-content' ); ?>
in the template and it displayed :slight_smile:

Glad we were able to help :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.