Forums

Getting links to work on Archive and Category listings? (6 posts)

  1. mshakeshaft
    Member
    Posted 6 years ago #

    I have set up a blog using WP 1.5 at http://www.docphot.org

    I am using a slightly modified classic theme. In many of my posts I have included links to other peoples websites. These links are shown and active on the front page but not in the Archives or Category listings. I have tried some other themes where they are active on these pages. Is there an easy way to achieve this?

    Any help would be appreciated. Thanks

    Martin

  2. moshu
    Member
    Posted 6 years ago #

    1. You are using the Deafult, not the Classic.
    2. That's by design: in archive view (be it monthly or by category) the template file (archive.php) is using the the_excerpt, while the mian index file is using the_content.
    You can replace the_excerpt with the_content.

  3. MichaelH
    Volunteer
    Posted 6 years ago #

    In my default theme's sidebar.php I deleted the line that says:
    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>

    and also the line that's down about 13 lines from that that says:
    <?php } ?>

    That then showed the links list on the archives also.

    Make a copy of your sidebar.php file before attempting this.

  4. iMartin
    Member
    Posted 6 years ago #

    Moshu

    In the WP-admin folder I have a file called admin.php BUT there is no line with 'the_excerpt' so I am unable to replace it with 'the_content'

    I am very new to all of this so could you please direct me to the correct file.

    Thanks

    Martin

  5. moshu
    Member
    Posted 6 years ago #

    All your theme files are in the theme folder(s). E.g.
    wp-content/themes/default/
    Inside the default folder you should be able to find the
    archive.php
    index.php
    sidebar.php etc.

  6. mshakeshaft
    Member
    Posted 6 years ago #

    Moshu

    Thanks very much mission accomplished!

    Cheers

    Martin

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags