Support » Themes and Templates » Meta data for Custom Post Types / * HELP */

Viewing 3 replies - 1 through 3 (of 3 total)
  • Actually, scratch the bit about it being stored in the Admin menu, I think it had something to do with the form values being held in my browser after submitting the page (because when I left, they’d gone blank again after I returned.)

    I think that in supports section you miss the ‘custom-fields’.

    "supports"			=>	array("title", "editor", "thumbnail", "excerpt", "custom-fields", "trackbacks", "comments", "revisions")

    Write this once and add the content in the custom fields. Then use the get_post_meta() function to retrieve the data.

    Actually, that had no bearing on the ability to store or retrieve meta-data. All it did was add a metabox for users to manage the custom fields themselves.

    It’s working now, but… I’m not sure how. For lack of anything better, I explicitly set “query_var” to the post type’s name (“publication”), and I suddenly noticed the metadata was being written to the database properly. Logically, that shouldn’t have had any influence if the default value of “query_var” is to use the post type’s name, but… *shrug* Meh, whatever works… :\

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Meta data for Custom Post Types / * HELP */’ is closed to new replies.