WordPress.org

Ready to get started?Download WordPress

Forums

Relation between single.php and page.php (6 posts)

  1. falke
    Member
    Posted 7 years ago #

    I am using the giraffe2 theme and like it very much. However I have seen that in some other themes the full pages show when you click on a archive or cathegorie. Not so in Giraffe.... ;o(

    I guess this has something to do with single.php and page.php, but I can not figure it out.

    Can someone please give me som help here?

    regards/falke

  2. ladydelaluna
    Member
    Posted 7 years ago #

    single.php shows one single post
    page.php shows one single page
    archive.php shows a list of posts (the archive) and can be modified to look many different ways (just listing them by category or month, or showing only post titles, organized by month with using a plugin called "srg clean archives", or a number of other ways) - if your theme doesn't have it already, you'll need to build it.

    does this help?

    if you could give us a link to your site so we can take a look, and a clearer description of what it's doing that you like/don't like, we might be able to give you more specific help.

  3. falke
    Member
    Posted 7 years ago #

    Thanks for the reply!
    You will find my site at http://falke.nu
    When a visitor click on a categorie like the first one Cykeltur 2006, the result should be a view of the full articles in that categorie, not just a short sumary as it is now.

    regards/falke

  4. falke
    Member
    Posted 7 years ago #

    Sorry, I mean when you click on the categorie Cykeltur 2005 as that is an archive.....

  5. samsarin
    Member
    Posted 7 years ago #

    Falke, I have not used the Giraffe theme, but the following should help:

    Open your archive.php file. Find a line that says:


    <?php the_excerpt() ?>

    and replace it with:


    <?php the_content(); ?>

    The first line (the_excerpt) tells WordPress to display only the summary of your articles. The second line (the_content) tells WordPress to display a full page of your article (which will display the whole article unless your article is broken up into multiple pages using <!--nextpage-->).

    Hope this helps!

  6. falke
    Member
    Posted 7 years ago #

    Thank you so much, Samsarin! That did the trick!
    regards/falke

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags