WordPress.org

Ready to get started?Download WordPress

Forums

Gallery from Featured Images (4 posts)

  1. Nick McBurney
    Member
    Posted 2 years ago #

    Hi,

    i am trying to set up an image gallery which is populated using images from the featured image of a post, im sure this should be fairly easy but I just cant seem to figure it out.

    Heres exaactly what I need:
    - Image gallery from featured image
    - Each image should link to relevant post
    - If possible the posts of a certain category should be show (e.g. Gallery1 should display image only from the 'Clothes' category), alternatively it would be ideal if I could set it up to gether the images from custom post types.

    Anyone have a bit of code I can use which will produce the result im after? or know of somewhere I could find something similar to what im after?

    Thanks for any help provided.
    Nick

  2. SNSD Photo
    Member
    Posted 2 years ago #

    1. image gallery from featured images = possible
    2. each image link to relevant post = possible
    3. ..gallery1->clothes.. = possible (not sure about "from custom types"), but it's possible to hook featured images from certain category.

    These are just like "related posts thumbnails", you can find on google (add keyword - without plugin, etc).

    Tweak the code and you'll get what you want.

  3. Nick McBurney
    Member
    Posted 2 years ago #

    Hi Blacklizt, thanks for your response but I already know this is possible as ive seen it working in many differant themes, the issue is that the theme im running doesnt have this option so im trying to code it myself, I could really do with a tutorial or code snippet to help me with this.

    I just need to know how to code a gallery using featured image from certain categories.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic