• Resolved stevenocheltree

    (@stevenocheltree)


    I just set up a new WP blog and I am testing it and the images do not show on the main page.

    If you click and view the individual post, the image will appear. I would like the images to appear both on the main page and the single post page.

    Any idea why this is happening?

    the site is here: https://www.wearesewcreative.com/blog/ and the most recent post is an example of my problem (click the post to view the image, etc).

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • esmi

    (@esmi)

    It’s your theme’’s index.php template file. It looks like it maybe configured to only show a post excerpt. If you don’t supply an optional custom excerpt, WordPress will create one automatically by stripping out all formatting, markup and images from the first 55 words of your post.

    You have 3 options:

    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.

    3. Install a custom, or advanced, excerpt plugin.

    Thread Starter stevenocheltree

    (@stevenocheltree)

    Thanks Esmi.

    I tried #1 and the image was displayed but it also messed up the rest of the page. It seemed to disregard page breaks (or something similar to that). It looked like a mess.

    I do not want any form of excerpt to appear. I want the full posts with images to appear on the site. How can I do that without it looking weird…like it does now (I’m leaving it this way so you can see what I’m talking about).

    https://www.wearesewcreative.com/blog/

    (Notice how the second post is displayed next to the first post and not underneath it.)

    Thanks,

    Steve

    esmi

    (@esmi)

    Have you tried options 2 or 3 yet?

    Thread Starter stevenocheltree

    (@stevenocheltree)

    I do not want to have to write an excerpt everytime I post. I just want to be able to write the post, press publish and have everything that I wrote appear on the main page.

    I don’t understand option 3. Could you point me in a direction?

    Where can I edit my “get_excerpt()” settings. I am new to PHP/Wordpress editing.

    Thanks again esmi!

    -s

    esmi

    (@esmi)

    It’s unlikely that get_excerpt() is being used in the template file. It’s probably the_excerpt() function – which is slightly different. It’s a standard WordPress template tag and one that can’t be edited or reconfigured in the way that you want.

    A plugin would be the easiest option if you’re not comfortable using PHP. Have a look through this list:

    https://www.ads-software.com/extend/plugins/search.php?q=excerpt

    Thread Starter stevenocheltree

    (@stevenocheltree)

    Hey Esmi,

    Do I need a plugin if I do not want an excerpt at all? I do not want to use the excerpt function in any way. I just want the content to be published in full. I never want to post an excerpt.

    esmi

    (@esmi)

    If you want the fill post content, then just use <?php the_content();?>in place of<?php the_excerpt();?>`.

    Thread Starter stevenocheltree

    (@stevenocheltree)

    Cool. That’s how I have it setup now. But it seems as if the post is floating left, so the second post, tags, etc seem to populate to the right of the first post instead of underneath it. I used the line:
    <div style=clear:both; display:block;></div> after the post div and after the tag div and it seemed to help a bit. But any text after the image (in the same post) seems to populate at the top right as well. Take a look. The “This is text after the centered image.” is text written underneath the image in the WordPress backend. Why is this happening?

    https://www.wearesewcreative.com/blog/

    Thanks for all of your help.

    esmi

    (@esmi)

    Try removing the float:left; in:

    .post img {
    float:left;
    padding:15px 0;
    }
    Thread Starter stevenocheltree

    (@stevenocheltree)

    Ya! Thanks so much Esmi! Everything seems to be running perfectly now!

    I really appreciate the help!

    -Steve

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Images appear in single post but not main page’ is closed to new replies.