• Resolved yst14

    (@yst14)


    Hi,

    I have a WYSIWYG field within ACF and I am using the WP Media to show images. I undertsand that there is some custom code that is needed to make this work on template pages. I found this via previous tickets however I cannot seem to get this to work.

    The code I have is:

    $figures = the_field('lesson_figures');
    if ( function_exists('slb_activate') ) {
        $figures = slb_activate($figures);
    
    }
    echo $figures;

    I’m not sure what i have done wrong? The code does output the custom field so i can see the images on my page however when I click on the image it just links to the media file?

    Thanks
    Ben

    https://www.ads-software.com/plugins/simple-lightbox/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Code provided not working for ACF fields’ is closed to new replies.