Forums

[Plugin: NextGEN Gallery] Displaying thumbnails - get_children type function? (4 posts)

  1. hotspur.me
    Member
    Posted 2 years ago #

    Hi

    I'm not sure if this is a complicated request or not.

    I have a wordpress page which shows the titles of the latest posts. What I want to do is display a thumbnail next to these titles if the post contains an image or gallery.

    One solution is to use the custom_fields when adding the post but I want to run this with WordPress MU and hence want it as user friendly as possible.

    What I think should be possible is to see if a post contains an image/gallery and if it does then to display this image as a thumbnail. Is there a variable/function for nextgen similar to http://codex.wordpress.org/Function_Reference/get_children which returns if a post contains an attachement.

    This is effectively want I want to do but using NextGen http://wordpress.org/support/topic/195811?replies=21

    Any help would be great.

    Cheers

  2. Michael Fields
    Member
    Posted 2 years ago #

    I use this code inside the loop:
    http://wordpress.org/support/topic/282027?replies=2

  3. hotspur.me
    Member
    Posted 2 years ago #

    Thanks :-)

    Does that work when the image is inserted into the post using NextGen?

  4. Michael Fields
    Member
    Posted 2 years ago #

    No, There's no need to insert the image into the post at all, The script will get the first image that was uploaded as an attachment to the given post.

Topic Closed

This topic has been closed to new replies.

About this Topic