Embed block in template

Posted in: Newspaper
Post count: 2

Hi,

Is there a possibility to add blocks directly in the PHP template. The equivalent shortcode is: [td_block_11 custom_title=”Some Title” category_id=”83″ limit=”5″ td_filter_default_txt=”All”] – is there any chance I can embed the same block directly in the template?

Thanks in advance,
Lia.

Post count: 7909

Hi,

You can use do_shortcode function to display it in the code:

<?php echo do_shortcode('[td_block_11 custom_title="Some Title" category_id="83" limit="5" td_filter_default_txt="All"]');?>

Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.