WordPress.org

Forums

Need to Make Sticky Posts Display Whole Post on Home Page (2 posts)

  1. sofia-afsc
    Member
    Posted 2 years ago #

    I need to display the entire post for Sticky Posts on on main/front/home page using WordPress and a Presswork-Child theme.
    Any time I attempt to bring the functions.php into my child theme my page doesn't load.
    I have seen on many sites codes to either lengthen the excerpt/summary (I want to bring it up to 90 or so words) or, more ideally, to keep excerpts/summaries at 55 words, but to display entire posts when they are sticky. I am very unclear though if I should be creating a functions.php, loop.php, header.php in my Presswork-Child folder, whether this should include the entire copy and pasted coded PLUS the code to make (sticky) excerts longer, where this would even GO in the whole code, or if I should create a functions.php in my Presswork-Child folder with ONLY this one small code (thinking maybe all the rest of the stuff would just get carried over from Presswork)?
    As you can guess I'm a real newbie at this, but hope someone can help.
    Thanks,
    Sofia

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    Any time I attempt to bring the functions.php into my child theme my page doesn't load.

    see: http://codex.wordpress.org/Child_Themes#Using_functions.php

    try to use the conditonal tag is_sticky() possibly in loop.php (untested - I don't know that theme)

    general example:

    <?php if( is_sticky() ) :
    the_content();
    else:
    the_excerpt(); ?>

    http://codex.wordpress.org/Function_Reference/is_sticky

Topic Closed

This topic has been closed to new replies.

About this Topic