• I am working on a design that has an Employee Image Gallery. There is the picture of the Employee, a line for their name, and their position. I set up the Media Library so that their Position can be entered and displayed on the Attachment page. Is there some way I can display their position on the Gallery page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes – enter the position as a caption to the image

    Thread Starter vpolite

    (@vpolite)

    Thanks esmi. This is the tag I’m using to display the position on the image.php page: <?php echo get_post_meta($post->ID, ‘position’, true);?>.
    I’m not sure where to place it on the gallery page? Or, what I should be researching to understand how it works? Thanks

    That really depends upon the structure of that template file but generally speaking, it need to be inside the Loop.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying second line of text in image Gallery’ is closed to new replies.