Forums

Simply Instagram
[resolved] Fix for Show Description toggle on tiles (2 posts)

  1. eberger3
    Member
    Posted 8 months ago #

    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!

    http://wordpress.org/extend/plugins/simply-instagram/

  2. gaheath
    Member
    Posted 6 months ago #

    Thanks eberger3 for the fix! This was not working for me as well and I was able to get it working properly thanks to you!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.