• I am trying to add a custom field (_wp_attached_file) to a new Page post, and its not working.

    I choose _wp_attached_file, put in a file name, and press “Add Custom Field”. I get the line: “Add a new custom field:” up above, under Key. Also, I get the message in pink below: “Something strange happened. Try refreshing the page.”

    I check the database, and nothing new has been added in the wp_posts or wp_postmeta tables.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter screener

    (@screener)

    I was able to add the file to an existing page under a new name, “attached_file”. This file did show up in the wp_postmeta table, and it was accessible through get_post_meta(). So, that is nice.

    I cannot, however, create a new page with the now available “attached_file” setting. I have to create a new page, then go back and edit it to included an attached file.

    To repeat, the custom field for a new page seems to be broken, to me. I can edit an existing page and add a new custom field after it has been created. This is sufficient for my purposes, but I think there is a bug.

    I’m using WP 2.2.2.

    Upgrade to 2.3.3 or the custom field issue might turn out to be the least of your worries. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom field not working when writing a Page’ is closed to new replies.