• Hello everyone, i am having a problem with displaying featured image of each post on a page along with the title .
    I have managed to show the first 4 featured images in a row using :

    http://pastebin.com/9Pw5rP3T

    I would also like to show the title of the posts either inside the featured image(like a caption) or below each image.

    Also is there any way to have a 10px gap in between each featured image since as of now they are all stuck together.

Viewing 2 replies - 1 through 2 (of 2 total)
  • please re-post your code so it does not get broken by the forum parser – http://codex.wordpress.org/Forum_Welcome#Posting_Code

    generally, try to wrap the image and title code into a html span tag or div and style it with CSS.

    Thread Starter Cerebros

    (@cerebros)

    Thanks sir, I apologize for the mistake. I have put it in pastebin and updated the link.
    As you can see right now it is only showing the image on the page using that code.
    Would this be the right snippet to add to show the Title :
    echo get_the_title($thumbnail->ID, ‘thumbnail’);

    I tried it and it shows the image and the title on the side of it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying Post Featured Images WITH Titles in a Row’ is closed to new replies.