Site logo

Archived topic

limiting 'after content' hook only to blog posts

5 replies · Started by Moses on January 8, 2018

Viewing posts 1–6 of 6

Hello
I'm using this code snippet in the 'after content' hook to display Elementor templates (signup form and related posts)

<?php if ( is_single() ) { 
echo do_shortcode('[elementor-template id="1287"]');
} ?>
<?php if ( is_single() ) { 
echo do_shortcode('[elementor-template id="1281"]');
} ?>

How can I limit them to appear only after blog posts? ATM they are showing at the bottom of single products too for example
http://nadyalobak.com/product/חוברת-השראה-לדרך/
http://nadyalobak.com/2018/01/07/טיפים-לחורף-נעים-חמים-ויצירתי/

Not really sure how to add an exclude rule to the code :/ but it seems like what should be done

Leo the magician!
Thanks it worked perfectly!

No problem :)

This archived topic is closed to new replies.