• Resolved Michael D

    (@michael-divine)


    I’ve used Advanced Custom Fields to add additional fields to images in the media folder. and then have lightbox pop up display that info.

    For instance:
    a custom URL that is displayed below the ‘description’ of the image.

    In ACF, I’ve added the field. It shows up on the simple image page when clicking on the image so I know that works.

    I saved layout.html as layout.php. I changed line 67 in class.themes.php to reference layout.php and tested it. it loads the correct template file. (I’ll go through the custom theming later…)

    I added <?php the_field(‘my_field’); ?> in the spot I’d like it, but nothing shows up and, it seems, it tends to break the other info there. Where or how would I add this so that it displays with the image?

    Thank you!

    FWIW I’m using a fresh install of WordPress, Happy Files Media Folders, Advanced Custom Fields, and Simple Lightbox. There are no other plugins.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ACF in Lightbox Template’ is closed to new replies.