WordPress.org

Forums

Making an image appear in the latest post (3 posts)

  1. mikem1986
    Member
    Posted 6 years ago #

    Hi guys

    Ive decided to split my 2 issues into seperate posts.

    Firstly

    Im setting up my blog on my own site at the mo and then will move it to a new domain once i have the layout sorted it.

    Its at http://www.onethoughtpgd.co.uk/wordpress

    Id like to set my page up that when i make a post in the "featured post" section of my blog id like it to appear, at the moment the only way you can see it is if you click the "continue reading" button.

    Someone told me that a tag called "excerpt" may be the way to do this but he and i are both unsure.

    Any help is appreciated

    Thanks

  2. noonoo
    Member
    Posted 6 years ago #

    At the moment your theme is probably using:

    <?php the_excerpt(); ?>

    This shows the first 55 words of the post's content or any text in the excerpt section but remove's any images and HTML tags, if this is the case you could change the code to:

    <?php the_content('Read more...'); ?>

    This will show the whole post including any pictures and HTML code. You will need to edit your index.php in notepad or another text editor.

    You might also need to adjust or remove the height of the featured boxs in the stylesheet if its been set to allow for the bigger posts, but it might not have been set so try changing that code first and see.

    Hope this helps

    Nick

  3. mikem1986
    Member
    Posted 6 years ago #

    thanks nick

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags