WordPress.org

Ready to get started?Download WordPress

Forums

Mad Mimi for WordPress
[resolved] 'title'=>true does not work (1 post)

  1. arvindk
    Member
    Posted 2 years ago #

    I tried <?php echo madmimi_show_form(array('id'=>3, 'title'=>true)); ?> in my template file but it would not show the title rather it shows 1 instead of the title. I found that when you set title=>true php converts true to "1" (may be due to different config of php) and then the plugin does not meet a condition if(!isset($atts['title']) && strtolower($atts['title']) != 'false' && $atts['title'] != "0" || strtolower($atts['title']) == 'true') you compare near line 385 of madmimi-widget.php hence it shows 1. I think you need to add additional check for this. Right now if i do 'title'=>'true' it works fine but not 'title'=>true.

    http://wordpress.org/extend/plugins/mad-mimi/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags