Jump to content

Archived

This topic is now archived and is closed to further replies.

jfitch

Trouble with hooks

Recommended Posts

jfitch

I use the following two hooks in my pageline child theme:

 

pagelines_loop_after_post_content

 

My problem is - the content I add using this hook appears below both PAGES and POSTS.

 

How can I get it to only work below posts, and not pages?

 

Many thanks!

Share this post


Link to post
Share on other sites
jfitch

Hi Danny

 

Thanks so much for your reply! Below is the code I have for the hook. How do I incorporate what you have suggested? Many thanks again!

 

add_action ( 'pagelines_loop_after_post_content', 'add_Below_Post_Ad' );
function add_Below_Post_Ad() {
?>
 <div align="center">Ad Code</div>
<?php }

Share this post


Link to post
Share on other sites

×