• hello , i know this is an easy question….

    but still new in wordpress can someone tell me plz how can i make that if someone click on a specific category it show the full post instead of a small part of the post with […] because its hard for people 2 figure out that they have 2 click again on the title 2 read the full post .

    Thank’s

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter commandos

    (@commandos)

    is this an easy question or what ?

    In the template used for your category pages, simply replace the calls to get_excerpt() with get_content().

    I understand the above but don’t know which file you are talking about.

    I am using the default template. What is the file name I need to open and edit. I need to do this for archives and categories.

    I have searched here, but can’t seem to find the exact files I need to edit.

    Thanks any help.

    Jeannie

    For the default theme – archive.php around line 43.
    (Notice, there is no s at the end, that’s a totally different file!)

    I would like to do the something similar but can’t find the get_excerpt() call.
    Here is my archive.php file. Thanks so much.

    <?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    <?php if (have_posts()) : ?>

    <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2 class=”pagetitle”>Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>

    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h2 class=”pagetitle”>Archive for <?php the_time(‘F jS, Y’); ?></h2>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2 class=”pagetitle”>Archive for <?php the_time(‘F, Y’); ?></h2>

    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h2 class=”pagetitle”>Archive for <?php the_time(‘Y’); ?></h2>

    <?php /* If this is a search */ } elseif (is_search()) { ?>
    <h2 class=”pagetitle”>Search Results</h2>

    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h2 class=”pagetitle”>Author Archive</h2>

    <?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
    <h2 class=”pagetitle”>Blog Archives</h2>

    <?php } ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php posts_nav_link(”,”,’« Previous Entries’) ?></div>
    <div class=”alignright”><?php posts_nav_link(”,’Next Entries »’,”) ?></div>
    </div>

    <?php while (have_posts()) : the_post(); ?>
    <div class=”post”>
    <h3 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
    <small><?php the_time(‘l, F jS, Y’) ?></small>

    <div class=”entry”>
    <?php the_excerpt() ?>
    </div>

    <p class=”postmetadata”>Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’,”,’|‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>

    <!–
    <?php trackback_rdf(); ?>
    –>
    </div>

    <?php endwhile; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php posts_nav_link(”,”,’« Previous Entries’) ?></div>
    <div class=”alignright”><?php posts_nav_link(”,’Next Entries »’,”) ?></div>
    </div>

    <?php else : ?>

    Sorry i just replaced “the_excerpt” with “the_content” and it works now. I was confused since I was looking for get_excerpt.

    ok, i have the same problem but the presented solution definitely doesn’t work for me. i notice on the archive.php it uses get_content() and displays part of the post, with the (more..) link, but the single.php also uses get_content() and displays the whole thing!!! whats up with that?

    Which theme? Can we have a link?

    just the default theme. i’m referring to to files in the default theme, called ‘WordPress Default 1.5’ by Kubrick. I’m going through the theme code and modifying it for my own uses, and i wanted the category archive page to show the full post, regardless of whether or not there was a more devider. I can’t give you a link.. i’m working on this locally

    hello?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘show full post in category’ is closed to new replies.