Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ankit Pokhrel

    (@ankitpokhrel)

    Hi Zatan,

    Could you please describe what you mean by nothing is working?

    Regards,
    Ankit

    Thread Starter mr.zatan

    (@mrzatan)

    Plugin Author Ankit Pokhrel

    (@ankitpokhrel)

    Hi Zatan,

    The plugin doesn’t work right out of the box. The plugin will only provide ability to add multiple featured image in backend than can be accessed using various theme functions. You need to modify your theme file to include other featured image as well. You can find the details here.

    Regards,
    Ankit

    Thread Starter mr.zatan

    (@mrzatan)

    add code in functions.php or single.php ?

    if( class_exists('Dynamic_Featured_Image') ) {
         global $dynamic_featured_image;
         $featured_images = $dynamic_featured_image->get_featured_images( get_the_ID() );
    
        //You can now loop through the image to display them as required
        //For example
        foreach( $featured_images as $image ) {
            echo "<a href='{$image['full']}'>";
                echo "<img src='{$image['thumb']}' alt='Dynamic Featured Image' />";
            echo "</a>";
        }
     }
    Plugin Author Ankit Pokhrel

    (@ankitpokhrel)

    You need to add this code where you want to display your images. If you want to display it in single page add it to single.php.

    Thread Starter mr.zatan

    (@mrzatan)

    Added..

    single.php Not show

    functions.php Not show

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘woocommerce Nothing is working’ is closed to new replies.