• I added the line

    $strOutput .= "\n<input type=\"hidden\" name=\"tags\" value=\"".get_the_title()."\">"; to the function display_image_upload_input…

    The purpose of this is that users will upload an image to the general album. The image is then viewed in galleries using the tag. The tag is supposed to attach automatically.

    I did this so I did not have to build a gallery for every post that allows image uploads.

    This seem to have worked at fist, but has since stopped. And idea what I can do to make this work?

    Sorry if my sentence structure is bad, i’ve been working for nearly 12 hours at the computer now… long past break time.

    https://wordpress.org/plugins/nextgen-public-image-uploader/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter awwnuts

    (@awwnuts)

    It appears as though the only time it will set the tag is if the “enable the image description text field” is checked.

    I’m looking through the code, but not seeing the correlation between the two.

    Thread Starter awwnuts

    (@awwnuts)

    Furthermore….. it only submits the tag with it if the image description field is not left blank.

    Thread Starter awwnuts

    (@awwnuts)

    OK… workaround for this…

    I unchecked the description box, and then copied this

    $strOutput .= '<input type="hidden" name="imagedescription" id="imagedescription" value=\"'.get_the_title().'\"/>';

    Below the tag input.

    It now works.

    Probably not the best method, it definitely doesn’t fix why the tags dont get inserted otherwise, but, its a start.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Setting tags when user uploads photo.’ is closed to new replies.