WordPress.org

Ready to get started?Download WordPress

Forums

Home Page listing option (6 posts)

  1. JProductions
    Member
    Posted 3 years ago #

    I would like all my pages to display like a catagory page does. Where it only shows the thumbnail and a small summary of the page, the title and the the meta data.

    Example:
    http://motocross.transworld.net/category/photos/

    I know how to code that using the HTML and CSS, but I was wondering if there was an option in my setting that made it just the summary, then I will style to my likings.

    I am using the Theme Graphene. I see in the loop that there is an option for this to work. It works on all category pages.

    Thanks,
    Brian

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    There's no setting in the admin area. You would need to edit the relevant template file in your theme and replace <?php the_content();?> with <?php the_excerpt();?>.

  3. JProductions
    Member
    Posted 3 years ago #

    But, if I remove <?php the_content();?> and replace it with <?php the_excerpt();?>, when I click on the post will it load the <?php the_content();?> on a separate page?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    If your theme's single.php file uses the_content, yes.

  5. JProductions
    Member
    Posted 3 years ago #

    ah, yes. It does have single.php

    But it calls on the loop using:
    <?php get_template_part('loop', 'single'); ?>

    Would it be easy to just create a new file called loopSingle and change it to:
    <?php get_template_part('loopSingle', 'single'); ?>

    Would that work?

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    Yes - that should work.

Topic Closed

This topic has been closed to new replies.

About this Topic