Forums

[resolved] how to show complete article instead of just a preview? (6 posts)

  1. filfil
    Member
    Posted 1 year ago #

    Hi,

    might someone please help me to achieve that when clicking on single categories or a month in the archive there is not shown just a preview of four up to five lines without images? I'd like to have shown the complete article including all images. To see what I mean please check out my blog.
    It might be of interest which theme I'm using: it is Veryplaintxt.
    Thanks in advance for any assistance,

    Stefan

  2. WildBil2Me
    Member
    Posted 1 year ago #

    This is the result of your theme's use of the_excerpt rather than the_content in your archive.php file.

    While the_content shows the full content of a post, the_excerpt only displays the first 30 or so words. Thankfully it's very simple to fix this...

    Open up your theme's archive.php file and browse to line 34. Simply replacing the_excerpt with the_content should do the trick.

  3. filfil
    Member
    Posted 1 year ago #

    Thanks a lot WildBil2Me, it worked pefectly!

  4. filfil
    Member
    Posted 1 year ago #

    I got the same problem with the search-function. So I tried the same. I went to the search.php in order to replace the_excerpt by the_content. But I couln't find the_excerpt there. There already is the_content but still only an excerpt is shown as search result. What to do about that?

  5. WildBil2Me
    Member
    Posted 1 year ago #

    I'm seeing the_excerpt on line 16 of the search.php file.

    Is it possible you just missed it?

  6. filfil
    Member
    Posted 1 year ago #

    Oh no, I don't know how I could miss it! Shame on me! I relied on the google-search-function. I wondered why it didn't find anything like "excerpt" and tried it three times before returning to the forum. Sorry about that and thanks again for your help. The things one has to change are so simple but if you don't know where to look you're lost. That's why I really appreciate your help.

Topic Closed

This topic has been closed to new replies.

About this Topic