WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
[Plugin: Types] How to add an image (5 posts)

  1. keepclif
    Member
    Posted 2 years ago #

    Hello,

    I created a taxonomy for colors and I need to specify for each their :
    - name (I use the name field)
    - reference (RAL) (I use the ID field)
    - thumbnail for preview

    Is it possible to do it with the plugin (I didn't found) or with a bit of code ?

    Thanks for your help,

    Caroline

    http://wordpress.org/extend/plugins/types/

  2. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    WordPress taxonomy doesn't support custom fields. There are hacks for it, but we prefer not to use them.

    Instead, you might want to create a post that connects to that taxonomy. To that post, you can add as many custom fields as you like.

    In the taxonomy page, load that post and then load its fields. It should be straight forward and clean to implement.

  3. keepclif
    Member
    Posted 2 years ago #

    Thank you for your quick answer !

    I will try to do what you propose... What do you mean by "In the taxonomy page, load that post and then load its fields" ? Could you send me a screenshot to help me ?

    Thanks again,
    Caroline

  4. imath
    Member
    Posted 2 years ago #

    Hi @keepclif and @AmirHelzer

    I'm currently working on the next version of one of my BuddyPress plugin and i've found this : http://www.codehooligans.com/2010/07/07/custom-meta-for-new-taxonomies-in-wordpress-3-0/

    It allows me to add meta to my taxonomy to store for example thumbnail/image for each category.

    It's really simple to adapt to our code ;)

    Otherwise types seems to be a really Interesting plugin. Thanks for the great work.

  5. Daedalon
    Member
    Posted 2 years ago #

    I've stumbled across a plugin called CPT-onomies: Using Custom Post Types as Taxonomies that might be the simplest solution for Keepclif.

    As I understood its description it lets you have a taxonomy, where each taxonomy entry has their own custom post type page with any custom fields you desire. Just like IMDB has with Titles (movies) and Names (people such as actors or directors), which are linked to each other and both of them have full-fledged pages.

    I haven't tried the plugin in action yet, but it seemed worth mentioning.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic