Display latest post image only from different categories (2 posts)

  1. incoe
    Posted 4 years ago #

    am currently query_posts to grab the latest posts thumbs and displaying them on the home page as such

    [code moderated - use the pastebin for any code over the forum limit of 10 lines]

    am also grabbing the title and displaying it with a hover effect over the image when mouse over using css, my question is can i display the image post from 4 different categories? like to display only the last post from these categories.

    in image 1 it will always grab from category 1, image 2 from category 4, image 3 from category 2 etc ... or will i have to keep repeating this loop to get he results i need?

    Thanks in advance.

  2. incoe
    Posted 4 years ago #

    code is at pastebin http://pastebin.com/Nt7DRYSz

Topic Closed

This topic has been closed to new replies.

About this Topic