Forums

[resolved] Category Archive Shortening (10 posts)

  1. pandadragon
    Member
    Posted 2 years ago #

    Hi id really love some help here please.

    Basically i lost my shopping directory site (forgot to backup doh !) and i thought to simplify things id use wordpress.

    Well its goingt well except i have problems with the category archive pages. i m using a tables plugin to insert my image html codes.

    And when i have a ew posts in a category archive it scrolls way to long.

    Is there a way i can shorten the entries for the category archives so its easier for people to navigate.

    Heres a classic example: http://www.pandadragon.co.uk/Shopping/category/home-living/

    Ideally i'd just like to keep the title and no content underneath viewable.

    Is this possible, im not too technically advanced with WordPress but will give it a go.

    Cheers

    Phil

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    With the help of the Template Hierarchy article, determine what Template is displaying your category archives, then in that Template delete the code that uses the template tag, the_content().

    Also review the first four questions here: FAQ_Layout_and_Design#Text_and_Content_Display

  3. pandadragon
    Member
    Posted 2 years ago #

    Hi There

    Thanks for your reply i have looked in my themes folder and viewed the files still cant find it?

    Any further tips? as i really want to use wordpress but not too technical at all this .

    Why is it the simple things are the hardest !!

    Thanks

    Phil

  4. Mark / t31os
    Moderator
    Posted 2 years ago #

    Determine which file handles the display for that given page.

    Do you have either of the following files in your theme's folder.

    1. category.php
    2. archive.php

    If neither then it will be the index.php
    See here for visual aid.
    http://codex.wordpress.org/images/1/18/Template_Hierarchy.png

    Once you know which file you're dealing with, open the file and paste the code into a pastebin, here.
    http://wordpress.pastebin.ca/

    Then post back the link here. Sounds (or appears) that you are looking to reduce the amount of results 'per_page', save scrolling down through results.

  5. pandadragon
    Member
    Posted 2 years ago #

    Hiya

    Thanks for your reply.

    I have an archive.php in my themes folder.

    This is the content of that : http://wordpress.pastebin.ca/1599256

    Yea im basically trying to keep the posts within the categories to just have a title then you click that to get to the post. Because they will have a lot of content and will scroll way too much.

    Cheers

    Phil

  6. MichaelH
    Volunteer
    Posted 2 years ago #

    Your date archives and your category archives look to both use archive.php then...

    If you want just the category archives to only show titles, then copy archive.php to category.php and delete the code that is this:

    <div class="postContent"><?php the_excerpt('(Read the rest of this entry...)'); ?></div>
  7. pandadragon
    Member
    Posted 2 years ago #

    Heya.

    I cant seem to find my category.php file i been in my default theme and my vistalicious theme?

    Any ideas

    When i do find it am i just adding the archive.php code in the category.php file or am i overwritting?

    And thanks for your help i appreciate it.

    Phil

  8. MichaelH
    Volunteer
    Posted 2 years ago #

    Read closely my response above.

  9. pandadragon
    Member
    Posted 2 years ago #

    Hi

    I did read it many times before i replied :-D

    Which is why i posted as confused, as i dont have a category.php file.?

    Do you mean make my own category.php file?

    Thanks

    Phil

  10. pandadragon
    Member
    Posted 2 years ago #

    UPDATE

    I have done it,

    Your a star, couldnt have done it without you.

    Thanks for your patience too :-D

    Many Thanks

    Phil

Topic Closed

This topic has been closed to new replies.

About this Topic