• I have searched out this topic and found what I thought was the answer…however it doesn’t seem to work for me.

    I read I was to replace

    <?php the_content(); ?>

    with

    <?php the_excerpt(); ?>

    When I make the switch…I notice no difference on the index page (am editing index.php)…

    Any idea why this does not work?…I’m using a custom theme, but I don’t think that would be the cause…

Viewing 10 replies - 16 through 25 (of 25 total)
  • Sure, Moshu.

    The following are for the blog.txt theme, version 1.2, in the home.php file.

    Lines 5 through 48 are for the “custom” layout.

    The “custom” layout basically displays one page by its slug (entered in the blog.txt Theme Options menu) and then the most recent post after that.

    The the_content lines for the “custom” layout are on lines 12 and 24.

    Lines 50 through 89 are for the “default” layout.

    The “default” layout is a regular layout, displaying however many posts are set in the Options > Reading menu.

    To change the the_content to the_excerpt in the default layout, you should look at line 58 in the home.php file.

    I’ve implemented the changes suggested in the documentation and this posting, but the issue I run into is that even though it creates a 120 word excerpt, it unfortunately does not setup a link to view the full article, though it posts the [...] at the end. Any ideas on what is causing this behaviour?

    Regarding the post above, I’m using the Gespaa v2 theme and edited code in the index.php.

    You shouldn’t implement anything from the postings above – since they refer to a particular theme!

    Your title is the (perma)link to your full article.

    I understand that it should function that way, but it doesn’t. That was the first thing I checked when I realized that there was no link inplace in the content matter itself to see “more”. I selected the title, but it didn’t send me off to the full article.

    So in short, if I hadn’t replaced the_content() with the_excerpt(), the entire article shows up on the main page. the_excerpt() effectively cut it down to a small ‘summary’, but it is now impossible to view the entire article.

    My assumption was that something that was considered a template tag ( https://codex.www.ads-software.com/Template_Tags/the_excerpt ) would be universal throughout any installation, perhaps I am mistaken in this.

    Nothing is “universal” – what is in the code of your theme is entirely up to the theme author, including the title being a permalink. See how it is done in other themes and edit your template files.

    Been combing through others, to no avail. It seems that there is some “blanket” code that is overriding this change, I’ve not figured it out as of yet and are going through the code line by line to see if I can figure out what is causing this behaviour.

    If anyone else has used the Gespaa V2 theme and run into this problem/found a solution, I would appreciate your input.

    I’ve figured this out. There was a conflicting tag of <?php echo get_permalink() ?> that was overriding the tag I added in single.php.

    For anyone else that encounters this, ensure you have a single.php file(it can mimic your index.php if you don’t want to go through the trouble of writing your own) and ensure no template taglines are doubling over themselves.

    2712812

    (@2712812)

    I have a default template installed at onedayers.com and am not able to get teh excerpts come (all articles show in full)

    2712812

    (@2712812)

    well solved it myself, thanks

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Show Summary NOT Entire Article’ is closed to new replies.