• I have a custom post type set up all fine, within it I’ve a submit button that brings up the media-upload.php. I’m having trouble (by not knowing how to) getting the post id into or available for the JavaScript I have. To get the images attached to the post.

    original…
    media-upload.php?type=image&TB_iframe=true

    would like…
    media-upload.php?post_id=$post->ID&type=image&TB_iframe=true

    the post_id=$post->ID& being what I need the JS to have inluded (I think).

    Would it then be possible to insert or make the gallery shortcode into a custom field.

    I hope someone can help out or point me in the right direction. Your awesomeness in coding knowledge is greatly appreciated. If you need more info please let me know.

    Thanks
    MB

  • The topic ‘Insert wordpress gallery into custom field?’ is closed to new replies.