WordPress.org

Ready to get started?Download WordPress

Forums

when u click on subject to read article it doesnt show the full text (8 posts)

  1. ggnetworks
    Member
    Posted 8 years ago #

    my site is: http://www.pakstop.com/info/

    Now the problem i am having is following. I added the the_excerpt() in my index so that it wud show summary of each update on main page instead of showing full article. But for some reason when i click on article to read , then on the next page of article it shows the same "short summary" text that was on the main page aswell, and IT DOES NOT show the complete article..and the pics.

    This is how my index looks the code: http://www.mypastebin.com/?code=1735849139

    What have i done wrong? can someone help. Thanks. I tried switching theme and same problem.

  2. Michael Bishop

    Posted 8 years ago #

    I'm guessing your theme doesn't have a single.php template, thus your single page view is the same as the index. And since index uses excerpt, so will single.

    If that's the case, let us know, and we can direct you to a solution for it.

  3. ggnetworks
    Member
    Posted 8 years ago #

    The templates it got is:

    files

    * Stylesheet
    * Main Index Template
    * Page Template
    * Comments
    * Popup Comments

    now i restored the files and theme as it was b4..but all articles are showing fully on main page, where as on main page i only want the first few lines like paragraph.

    so what shall i do

  4. Michael Bishop

    Posted 8 years ago #

    I'd copy the index.php file and save it as single.php
    Then you can change your index.php to have the_excerpt

    that's the easiest solution.

    If you'd like to learn more about templates and themes, you can look around the codex Templates

  5. ggnetworks
    Member
    Posted 8 years ago #

    great miklb working like a charm now.

    any way to restrict the the_excpert to show only the first 200 letters or 100..instead of the current limit.

    and last thing on main page at the end of each article it says […] but it has no link for "read more" ..which template do i edit so i can replace that […] with read more? and what will the exact code be.

    thanks a ton for the help

  6. Michael Bishop

    Posted 8 years ago #

    you should look at this plugin
    http://guff.szub.net/2005/02/26/the-excerpt-reloaded/
    it will allow you to do all the things are asking about, as those options are not built into WP.

  7. ggnetworks
    Member
    Posted 8 years ago #

    just last thing on the main page after each article it says […] but it has no link where it says read more.

    http://www.pakstop.com/info/

    can u tell me which template i have to modify with what code

  8. ggnetworks
    Member
    Posted 8 years ago #

    so anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags