• I got my website fixed but the images on the posts on the homepage arent displaying. The only way the images in the posts will display is if you click on the title of the post. Is there a plug in or something I need? Please help asap!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter tunermag

    (@tunermag)

    how would i go about doing either or:

    1.Edit index.php template file in your theme and replace the_excerpt() with the_content(). Then edit each post and insert the <!– more tag –> where you want your posts’ excerpts/teasers to finish.
    2.Write a custom excerpt in the Excerpt field, under the post edit box. It can be as short, or as long, as you wish and can include images.

    Thread Starter tunermag

    (@tunermag)

    I am new to all this, if someone could explain how to set this up so it dispalys images on the wordpress front page that would help alot

    you do just what you just typed.

    Edit index.php template file in your theme and replace the_excerpt() with the_content().

    Thats what you do.

    You edit you theme’s index.php file ..

    that means you use an ftp client, you download the file, you open it in a plain text editor, you locate the bit of text mentioned, and you change that to be the other bit of text.

    Then you save the changed file.

    You open your ftp client, reconnect to your web site, rename your themes current index.php to something else like index.php-backup (thusly backing up the unchanged file) and then you upload your newly changed file.

    Then edit each post and insert the <!- more tag -> where you want your posts’ excerpts/teasers to finish.

    what dont you understand about that??

    Thread Starter tunermag

    (@tunermag)

    I guess I dont get the <!- more tag -> . I used to be able to just post the html and the image would show but then my site crashed. where exactly is the index.php located?

    ok, well what youre seeing is a consequence of your theme. Or should be.

    your current sites theme is going to be found inside wp-content/themes/yourthemefolder/

    where yourthemefolder is replaced by the actual name of your theme. Find the name of your theme by looking in your admin area.

    The <!- more tag -> tag breaks up the page when you are using the_content instead of the_except on your index.php or home.php

    this is a good explanation — though its aimed at wordpress.com its the same even if you are self-hosted.

    https://support.wordpress.com/splitting-content/more-tag/

    Thread Starter tunermag

    (@tunermag)

    ok I get that but how come my html images are showing in the post above the text.

    I cant possibly answer that. No-one else can either.

    1. Im not looking at your site. I dont even have the url for your site.

    2. I dont know what theme you are using, therefore I cant look at the theme. Furthermore, I dont even know if there have been changes to your theme.

    3. It could even be CSS.

    Thread Starter tunermag

    (@tunermag)

    I cant find _excerpt() in my index.php

    well what can you find?

    Thread Starter tunermag

    (@tunermag)

    <?php get_header(); ?>

    <div id=”content”>

    <div id=”contentleft”>

    <div class=”postarea”>

    <?php include(TEMPLATEPATH.”/breadcrumb.php”);?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”headline”>

    <div class=”headlineleft”>

    <h1><?php the_title(); ?></h1>

    </div>

    <div class=”headlineright”>

    <p>#respond”><?php comments_number(‘0’, ‘1’, ‘%’); ?></p>

    </div>

    </div>

    <div style=”height:0px;clear:both;”></div>

    <?php the_content(__(‘Read more’));?><div style=”clear:both;”></div>

    <div class=”postmeta”>
    <p>Posted by <?php the_author_posts_link(); ?> on <?php the_time(‘l, F j, Y’); ?> at <?php the_time(‘g:i a’); ?> <?php edit_post_link(‘(Edit)’, ”, ”); ?>
    Filed under <?php the_category(‘, ‘) ?> · Tagged with <?php the_tags(”) ?></p>
    </div>

    <!–
    <?php trackback_rdf(); ?>
    –>

    <?php endwhile; else: ?>

    <p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p><?php endif; ?>

    </div>

    <?php comments_template(”,true); ?>

    </div>

    <?php include(TEMPLATEPATH.”/sidebar.php”);?>

    </div>

    <!– The main column ends –>

    <?php get_footer(); ?>

    Thread Starter tunermag

    (@tunermag)

    can anyone just fix this really quick?

    <h1><?php the_title(); ?></h1>

    all you should be seeing are titles.

    you dont have the exceprt or the content being displayed.

    Open up the index.php that is inside the default theme, and look at how that’s done:

    Uh? About halfway down the code:

    <?php the_content(__('Read more'));?><div style="clear:both;"></div>

    @tunermag: If you’re using the <!-- more --> tag, have you checked that it’s after the images(s)?

    oh, oops missed that. good eye esmi ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Images on posts are displaying on homepage’ is closed to new replies.