Ultimate Post Type Manager
Image Custom Field issue (4 posts)

  1. negs
    Posted 3 years ago #

    I am using the plugin and I have an image custom field set up. When I upload an image, I get the typical window to select the image and then insert into post. But when I click 'insert into post', the window goes blank. When I close the window, no image has been inserted.

    The image was uploaded to the media gallery, just not inserted into post.

    Any idea what is going on? Thanks.

    p.s. this plugin is fantastic. thanks for making it.


  2. negs
    Posted 3 years ago #

    Bump. Anybody have any idea what's up?

  3. Toby Cryns
    Posted 3 years ago #

    I am also experiencing this exact same issue.

    WP 3.2.1

  4. blindwaves
    Posted 3 years ago #

    I've partially solved the main issue where the link does not "insert into post". There still are errors where after inserting, a javascript error will pop up. And I'm a bit concern about the function being called frequently, as this will hit the database quite often.

    Anyway, the partial fix is to edit the core file for the plugin:

    Insert this function call in index.php at line 345:


    Final result should look like this:

    if ( !function_exists( 'xydac_loadfields' ) ) { function xydac_loadfields() {
        global $xydac_fields;


    Just a follow up on what is happening to cause this issue, basically the plugin checks for an "active field" and inserts a javascript code asssociated with the field.

    But the problem is the "active field" is not being updated, the function responsible for this is in cptfields.php (line 3). This function does not seem to be called anywhere in the plugin.

    So basically what I did is to force this function to be called on init of plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ultimate Post Type Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic