• Resolved jamo_dodger

    (@jamo_dodger)


    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)
  • edit content.php in (a child theme of) Twenty Twelve;
    change for instance this line:

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>

    to:

    <?php if ( !is_sticky() && is_home() || is_search() ) : // Only display Excerpts for Search ?>

    be aware that some post formats are not using content.php …

    Thread Starter jamo_dodger

    (@jamo_dodger)

    Thanks alchymyth for your prompt response this worked great.

    James

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.