[wp-hackers] Custom fields for attachments
Jon Mihkkal Inga
lilla.molnet at gmail.com
Sat Jun 19 12:48:58 UTC 2010
Kudos to Paul
If anyone's interested in a compact solution, just pop me an email.
/j.
2010/6/18 Paul <paul at codehooligans.com>
> Jon,
>
> I'm assuming you want two new fields to show on the Upload Media form and
> or the form under the Media nav. Simple enough.
>
> There are two actions you want to hook into
>
> attachment_fields_to_edit and attachment_fields_to_save
>
> The first action lets you add fields to the media popup form. The second
> action gets called when the user saves the form. This will let you process
> the form fields and update the post meta or whatever.
>
> Do a search via Google to find some code examples. I wrote a plugin called
> Media-Tags which does this.
>
> P-
>
>
>
> On Jun 18, 2010, at 1:52 PM, Jon Mihkkal Inga wrote:
>
> >>
> >> Either way you're looking at a custom plugin to add the data, and some
> >> theme work to display it.
> >>
> >
> > Exactly. Isn't there a plugin that can do this for me already?
> >
> > /j.
> >
> >
> >
> > 2010/6/18 Otto <otto at ottodestruct.com>
> >
> >> You could do it with postmeta data, but if it was me, I'd do it with
> >> custom taxonomies.
> >>
> >> http://codex.wordpress.org/Custom_Taxonomies
> >>
> >> Either way you're looking at a custom plugin to add the data, and some
> >> theme work to display it.
> >>
> >> -Otto
> >>
> >>
> >>
> >> On Fri, Jun 18, 2010 at 11:43 AM, Jon Mihkkal Inga
> >> <lilla.molnet at gmail.com> wrote:
> >>> Hi everybody, 3.0 is great and everything. Nice to see post thumbnails!
> >>>
> >>> I have this problem: I got a bunch of product images and I want to
> >> associate
> >>> "Price" and "Size" fields to them for easy display in galleries. My
> guts
> >>> tells me someone has already done this but I can't find any examples.
> Any
> >>> pointers?
> >>>
> >>> /jomik
> >>> _______________________________________________
> >>> wp-hackers mailing list
> >>> wp-hackers at lists.automattic.com
> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>>
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list