WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add prefilled custom field (2 posts)

  1. mvanboordt
    Member
    Posted 1 year ago #

    Hi,

    I want to have a custom field that is partial pre-filled.
    The Key should be given and the value should be insert by the user.

    I'm creating a plugin that let's users insert a gallery.
    After the gallery is created the user should insert the gallery id to a custom field. In the template the custom field inserts a value to a shortcode.

    So what I'd like to have is:

    $gallery_id => $value

    But I can't figure out how to create a custom field where the $key is allready filled.

  2. mvanboordt
    Member
    Posted 1 year ago #

    Ah crap.

    I just found out I can do this with: Metabox.

Topic Closed

This topic has been closed to new replies.

About this Topic