Images Disappear When Theme Change

Discussion in 'Blogging' started by WACMan, Jul 18, 2007.

  1. #1
    I am using WP 2.2.1.

    I have a small image inserted in all my posts (over 1000)

    I recently built a template and installed, the images on the main page display fine and I can go back through previous pasts and all display fine.

    When I click on an individual post, the images disappear. Thinking I coded wrong, I loaded up a couple other themes and same thing happens.

    It does not happen in original template OR in WP default templates (All images display correctly)

    What is wrong?
     
    WACMan, Jul 18, 2007 IP
  2. Edynas

    Edynas Peon

    Messages:
    796
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    is the url of the image maybe relative to the path of the theme?
    Could you show me/us where it is to see if what's wrong
     
    Edynas, Jul 19, 2007 IP
  3. WACMan

    WACMan Peon

    Messages:
    253
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Here is what I narrowed it down to.

    Main page all is well as far as images.

    If I click an individual post all works well.

    If I click on a category- List will not show images in any of the listed posts.


    *Edynas - If we can get together I will be glad to show you but I am not keeping the new theme activated till I get it right. Old theme works fine still so keeping it active.
     
    WACMan, Jul 19, 2007 IP
  4. WACMan

    WACMan Peon

    Messages:
    253
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think I have figured out the problem but not how to fix it. (and why it is happening with multiple templates but not the one I am using)..

    When I click on categories, it shows a "preview" of my post, this must be eliminating my images, my current template does not do this.

    Now to find out how to stop this option..(posts not long so no need for it).

    I have learned A LOT so if someone knows what code I need to change, I will appreciate the help. :D:p;)
     
    WACMan, Jul 19, 2007 IP
  5. r3born

    r3born Active Member

    Messages:
    1,070
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    88
    #5
    Ahh, I finally understood what you were talking about :)
    I figured out how to get rid of this problem :
    You have to look through the page responsible for category archive (category.php) and search for something like this :

    <div class="post-content">
    <?php the_excerpt(','); ?>
    <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    read more from this topic.....</a></p>
    </div>
    
    Code (markup):
    That is what I had in my case.

    Now, check out your main index file (index.php).

    Search for something like that :

    <div class="post-content"><?php the_content('Continue reading this post...') ;?></div>
    
    Code (markup):
    Now, in the category page, replace the first code with the second :)
    Worked for me. Don't forget to make some backups, and if you fail then let me know...

    PS Rep expected :)
     
    r3born, Jul 19, 2007 IP
    WACMan likes this.
  6. WACMan

    WACMan Peon

    Messages:
    253
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #6

    Yea, I can't ever get it into words right :D


    THANK YOU!

    It works fantastic and rep is added!
     
    WACMan, Jul 19, 2007 IP
  7. r3born

    r3born Active Member

    Messages:
    1,070
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    88
    #7
    Glad it worked for you :)

     
    r3born, Jul 19, 2007 IP