• Resolved Pam Blizzard

    (@pdblizzard)


    I have a very basic CPT but it needs to allow for entry of multiple images and then display of those images for the visitor.

    I’ve searched the documentation and support forums, but aside from having to change my page.php is there a way to display those multiple images using the template and magic tags? Or is there a way to make a field that creats a nextgen gallery (or a similar plugin)? Multiple images seems so basic, I must be missing something?

    http://wordpress.org/plugins/pods/

Viewing 1 replies (of 1 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Try looking at http://pods.io/docs/code/pods/ and http://pods.io/docs/code/pods/field/ and looping through the related image array to output the images as you’d like.

    Further, since it’s a CPT, you’re also welcome to use get_post_type( get_the_ID(), 'your_image_field' ) to get the image array that way.

    We have a handy pods_image( $image_id, 'thumbnail' ) function that automatically gets the image URL for a specific size. If the size doesn’t exist yet, it will even attempt to generate it for you. Similarly, you can pass an array of w/h like pods_image( $image_id, array( 100, 200 ).

Viewing 1 replies (of 1 total)
  • The topic ‘Display multiple images using template?’ is closed to new replies.