Display full content of sticky posts on homepage, but excerpts on the rest
-
Hello,
I am editing the content.php file in my 2012 child theme and am using:
<?php if ( is_front_page() || is_archive() || is_search() ) : // Only display Excerpts for Search, Archive and Home pages ?>
to display excerpts on my homepage. However at the top of the homepage their is a slideshow sticky post that does not display when using this code.
I have tried using alchymyths
<?php if ( !is_sticky()&&is_home() || is_front_page() || is_archive() || is_search() ) : // Only display excerpts for home, archives and search; but not for stickies on home. ?>
but it does not work, does anyone know how i can do this?
James
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display full content of sticky posts on homepage, but excerpts on the rest’ is closed to new replies.