Forums

[resolved] Images and links in post disappear- they are there, but not showing up (7 posts)

  1. mondo00
    Member
    Posted 4 years ago #

    I have set up a wordpress site here: http://www.mondoluna.com and I need some help.

    I can't get my posts to see links and images. When I create a post with images and links and publish it, they are no longer there. The pictures disappear and the link just looks like regular text.

    Is this a php problem? Is it something that I can fix? It must have been the template that I was using, but since this is the 4th template, I really don't want to start over with a 5th.

    Thanks!

  2. moshu
    Member
    Posted 4 years ago #

  3. mondo00
    Member
    Posted 4 years ago #

    Okay, I read that and I am even more confused.

    Just for the record, I know html and css, but have NO CLUE what php does or know anything about it.

    I am gathering that my code is set to excerpt instead of content. From what I read, the excerpt code won't allow links and/or images. This makes sense.

    But how do I make it to read content? I've been inside the index.php file and can't find which code I am supposed to change. If someone can just point out to me where I need to make the change, I would be ever so grateful. The post I read gave me the code but I just don't know where it goes.

    Thanks!

  4. moshu
    Member
    Posted 4 years ago #

    You don't really need any PHP knowledge for this, just well-developed copy/paste "skills" :)

    You are on the right track - you have to replace the excerpt tag with the content tag.

  5. moshu
    Member
    Posted 4 years ago #

    OK, it's more complicated than it should be - you have a lazy designer there... too lazy to make a single.php file :(

    Find in your theme's index.php this (line #18-24)

    <div class="entry">
    					<?php if (is_single()) { ?>
    						<?php the_content('Read the rest of this entry &raquo;'); ?>
    					<?php } else { ?>
    						<?php the_excerpt(); ?>
    					<?php } ?>
    				</div> <!-- .entry -->

    Replace it with this:

    <div class="entry">
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div> <!-- .entry -->
  6. mondo00
    Member
    Posted 4 years ago #

    OH THANK YOU THANK YOU THANK YOU!!!!

    I've been trying all afternoon to try to figure this out!! I wish I were a programmer--- this would probably come a lot easier to me.

    Thanks you Moshu!! You rock!!!

  7. moshu
    Member
    Posted 4 years ago #

    Glad it worked.
    (just for the record: I am not a programmer, everybody knows that...)

Topic Closed

This topic has been closed to new replies.

About this Topic