WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how do you make "collapsable posts?" (4 posts)

  1. tcdeals
    Member
    Posted 6 years ago #

    Hello everyone, I am brand new to wordpress and need some help. Is it possible to make collapsable posts like this - http://slickdeals.net/ ? If so, I would appreciate some detailed instructions.

    Thank you,
    Scott

    P.S. Is that wordpress on their homepage?

  2. cheese apples
    Member
    Posted 6 years ago #

    Don't think that is WordPress, but it is using AJAX to pull it off.

    You can download and learn how to use the WordPress plugin called AJAXed WordPress and you can do exactly that. It doesn't do exactly that right out of the box, but it can do it. Read their FAQ, etc to learn how.

  3. tcdeals
    Member
    Posted 6 years ago #

    O.K. - I'll check it out. Thank you.

    I tried to do this too (in FAQ docs section) -
    "How do I show only the titles of articles on the weblog homepage?

    To show only the title of posts on the weblog homepage, in index.php replace

    <?php the_content(); ?>

    With something like:

    <?php
    if (is_single()) {
    the_content();
    }
    else {//no content, nothing.
    }
    ?>

    This will show the post content only on the individual posts page."

    I couldn't find that original code "<?php the_content(); ?>"
    do you know where that is?

    Thank you

  4. cheese apples
    Member
    Posted 6 years ago #

    It could look like several things. If you are doing it for the homepage look in the index.php of your theme.

    It could look a little different like:

    <?php the_content('Read the rest of this entry &raquo;'); ?>

    For example.

    That is the code that would display the content of a post. Would be in other places like single.php as well.

Topic Closed

This topic has been closed to new replies.

About this Topic