[Plugin: Simply Instagram] Fix for Show Description toggle on tiles
-
Great plugin
I was having trouble disabling the image descriptions so that my tiles would all be the same height so I decided to take a look at your code. I noticed that True was missing quotes in all three instances of:
get_option( 'displayDescription' ) == true ? $output .= '<p>' . htmlspecialchars( $data['data'][$i]['caption']['text'], ENT_QUOTES ) . '</p>' : null ;
in simply-instagram-functions.php
So I just wrapped all three of them in quotes like:
get_option( 'displayDescription' ) == "true" ? $output .= '<p>' . htmlspecialchars( $data['data'][$i]['caption']['text'], ENT_QUOTES ) . '</p>' : null ;
and it appears to be working!
https://www.ads-software.com/extend/plugins/simply-instagram/
- The topic ‘[Plugin: Simply Instagram] Fix for Show Description toggle on tiles’ is closed to new replies.