Forums

Echo NextGen Gallery image in another plugin (1 post)

  1. darkmatter661
    Member
    Posted 2 years ago #

    Hello!

    I'm a total newb at php coding and was hoping to get some assistance in accomplishing something basic.

    I need to call the ALT text of a NextGen Gallery image into an Option Input box of WP-eStore. In essence, I've inserted $image->alttext into a $var_output string located in an eStore button display helper string as such:

    {
            if(!empty($ret_product->custom_input_label))
                $var_output .= $ret_product->custom_input_label.': <input type="text" name="custom_input" value="'.$image->alttext.'" class="eStore_text_input" />';
            else
                $var_output .= 'Instructions: <input type="text" name="custom_input" value="" class="eStore_text_input" />';
      		if ($line_break) $var_output .= '<br />';
    		else $var_output .= ' ';
        }

    Nothing is output in the value field when tested, my guess being that it doesn't know what that is and outputs a blank value.

    How do I make it recognize the variable $image?

Topic Closed

This topic has been closed to new replies.

About this Topic