Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress custom fields/multiple featured image issue.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43009
    jshjohnson
    Member

    Hello,

    http://allyouneedis-justask.com.s156312.gridserver.com/make-up/

    The client above has asked for each portfolio page to have three images with three smaller images beneath them. The larger three images link to their respective pages. To achieve what I have got so far I have used multiple featured images however I am starting to think this isn’t the best approach as if I carry on the back-end will have 12 featured image sections.

    Any ideas? I’m not particularly confident with PHP

    #126312
    Senff
    Participant

    So are we talking about 12 different images? Three blocks, each with 4 images (one large one and three small ones)? And each image just links to another page?

    If that’s the case, I would give each of the 12 pages their own featured image first. Then one the Make-up page, you just pull the featured image from each page you’re linking to, and display that one. That way, each page just has one featured image section.

    So it would be something like this (you’ll just have to put this in a loop for all 12 pages):

    <a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail(); ?>"></a>
    

    Hope that makes sense.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.