• Resolved thecolonialist

    (@thecolonialist)


    I have my homepage set up so that all the posts are displayed with their intro text and then a “read more” button. However, I have one sticky post at the top that I’d like to display in its entirety, while maintaining the “read more” system with all other posts. Is there any way to do this? Forgive me if there’s something I could have found before posting this. I tried searching, but it’s sort of a tough issue to find the right keywords for.

Viewing 3 replies - 1 through 3 (of 3 total)
  • <?php
    if (is_sticky()) {
      global $more;    // Declare global $more (before the loop).
      $more = 1;       // Set (inside the loop) to display all content, including text below more.
      the_content();
    } else {
      global $more;
      $more = 0;
      the_content('Read the rest of this entry &raquo;');
    }
    ?>
    Thread Starter thecolonialist

    (@thecolonialist)

    Awesome! Thanks!

    Hi,
    same issue, where i have to put this code?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Entire single sticky post on homepage with excerpts’ is closed to new replies.