When there is no title element, displays ’undefined’
  • When there is no title element, displays ’undefined’.

    souce from line 203
    Here, like this is it?

    if(pp_descriptions[set_position] != \"\"){
    $pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));
    }else{
    $pp_pic_holder.find('.pp_description').hide();
    }

    to

    if(typeof pp_descriptions[set_position] != 'undefined' && pp_descriptions[set_position] != \"\"){
    $pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));
    }else{
    $pp_pic_holder.find('.pp_description').hide();
    }


  • I've got PrettyPhoto hard coded into my theme and it grabs the image from the featured post.

    All my image descriptions are showing as 'undefined'.

    Will see if this works... Cheers.
  • This is working fine! Thanks a lot for the tip & code domifara.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter