• Hi! I’m failing to see the flaw in this code so could you please tell me WHY the <img /> comes up completely empty? It’s like the unserialize thing does nothing or … Well, I dunno.

    <div class="image single">
       $userName = fm_summary_the_user();
       if($userName != ""){
          $userData = get_userdatabylogin($userName);
       }
       $submittedBy = $userData->user_nicename;
    
       while(fm_summary_have_items()): fm_summary_the_item();
    
          if(fm_summary_the_label() == "Select Image"){
             $imgFile = fm_summary_the_value();
             $imgFile = fm_summary_get_item_value($imgFile);
             $imgFile = unserialize($imgFile);
             $imgName = $imgFile['filename'];
             $imgLocation = $imgFile['upload_url'];
    
          } elseif(fm_summary_the_label() == "Image Caption"){
             $imgCaption = fm_summary_the_value();
    
          } elseif(fm_summary_the_label() == "Category"){
             $imgCategory = fm_summary_the_value();
          };
    
       endwhile;
    
       <img id="fm-post-img-<?php echo $imgName.'" src="'.$imgLocation.'/'.$imgName; ?>" />
    
       <div class="meta">
          <h3>Caption: <?php echo $imgCaption; ?></h3>
          <h5>Category: <?php echo $imgCategory; ?></h5>
          <p class="submittedBy">submitted by <a href="/members/<?php echo $submittedBy.'">'.$submittedBy; ?></a></p>
       </div>
    
    </div><!-- .image single -->

    As always, any help is appreciated.

    Andrew
    http://about.me/Andrew.Parris

    http://wordpress.org/extend/plugins/wordpress-form-manager/

  • The topic ‘[Plugin: WordPress Form Manager] Could you tell me why this is not working?’ is closed to new replies.