Home › Forums › Support › after content hook content ONLY after posts ? This topic has 9 replies, 4 voices, and was last updated 7 years, 2 months ago by Tom. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts January 20, 2017 at 12:00 pm #266255 BarnaB Hi I created a WPSP list to be placed after the blog posts, but it shows up after the pages too…Is it possible to use this only after posts ? Thanks January 20, 2017 at 12:05 pm #266256 BarnaB never mind just used it like soo : <?php if ( is_single() ) : ?> [wp_show_posts id=”104113″] <?php endif; ?> and it only comes on on blog posts π January 20, 2017 at 2:49 pm #266332 LeoStaff Customer Support Glad you found a solution! February 16, 2017 at 10:59 pm #280040 Jasper Can i use this thread? How to not only use on posts but also postarchives? February 17, 2017 at 7:32 am #280196 LeoStaff Customer Support Hi Jasper, It would something like this: <?php if ( is_single() || is_archive() ) : ?> [wp_show_posts id=β104113β³] <?php endif; ?> Let me know if this is what you are after. February 17, 2017 at 7:54 am #280204 Jasper thanks, last question: how do i define in a hook all pages except the home page, that is probably an easier solution for me February 17, 2017 at 7:59 am #280206 LeoStaff Customer Support Is your home page the blog page or just a regular page? The structure I used in this post should help: https://generatepress.com/forums/topic/smartslider3/#post-279950 Have a look and let me know if need more help π February 17, 2017 at 9:47 am #280273 TomLead Developer Lead Developer If the home page is the blog: <?php if ( ! is_home() ) : ?> This content will show up everywhere except for the posts page <?php endif; ?> A static page: <?php if ( ! is_front_page() ) : ?> This content will show up everywhere except for the front page <?php endif; ?> February 17, 2017 at 9:55 am #280280 Jasper Thanks!! February 17, 2017 at 9:57 am #280281 TomLead Developer Lead Developer You’re welcome π Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In