WordPress.org

Forums

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

  1. eberger3
    Member
    Posted 2 years 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 2 years 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simply Instagram
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.