need help to edit WP theme

Discussion in 'HTML & Website Design' started by Mares, Feb 10, 2009.

  1. #1
    Hi,

    I use customized (not default) WP theme for my blog and need one help.

    Problem is that when I go (as visitor) to one of the categories, there are no images in posts, just text. But, if I click on the post to see it completely, that the image appears.

    So, to be more precise: images in categories won't show.

    Index page of blog normaly shows all pictures in posts.
    If I choose one of categories, there are no images, just text.
    If I choose specific post, image will appear.

    Does anyone know what theme file should I edit so images would show in categories?

    Thanks...
     
    Mares, Feb 10, 2009 IP
  2. codecre8r

    codecre8r Well-Known Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #2
    Are you using a theme you downloaded from the Internet? If so, what's the theme name?
     
    codecre8r, Feb 10, 2009 IP
  3. Mares

    Mares Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes, its from internet ... name is wrastle-10
    hope that helps...
     
    Mares, Feb 10, 2009 IP
  4. codecre8r

    codecre8r Well-Known Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #4
    It's doing this because category.php is using the WordPress function 'the_excerpt()' instead of 'the_content()' to display a portion of the article. By default, this function will only display links and text.

    This is done to avoid duplicate content issues on the category pages.

    Take a look at this for a solution to your problem: http://guff.szub.net/2005/02/26/the_excerpt-reloaded/
     
    codecre8r, Feb 10, 2009 IP
  5. Mares

    Mares Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks for explanation ... will check now the link, hope i will resolve this problem
     
    Mares, Feb 10, 2009 IP
  6. Mares

    Mares Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    hmm, i uploaded and activated neccessary plugin from link you gave, but dont know what excately to do next.
    I am not kinda profesional into codes so maybe you might tell me what should I do next?

    what code should I copy/paste into what .php file of my blog theme?

    ps. where should I put this code?(this is from above link) "Usage:

    <?php the_excerpt_reloaded(excerpt_length, 'allowedtags', 'filter_type', use_more_link, 'more_link_text', force_more_link, fakeit, fix_tags); ?>"
     
    Mares, Feb 10, 2009 IP
  7. codecre8r

    codecre8r Well-Known Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #7
    In category.php, replace <?php the_excerpt(); ?> with <?php the_excerpt_reloaded(120, '<img>'); ?>

    It's on line 21.
     
    codecre8r, Feb 10, 2009 IP
  8. Mares

    Mares Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    done, now its working ;)
     
    Mares, Feb 10, 2009 IP
  9. SweetChilli

    SweetChilli Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    SweetChilli, Feb 10, 2009 IP
  10. SweetChilli

    SweetChilli Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    pls ignore my posts, you solved your problem
     
    SweetChilli, Feb 10, 2009 IP