Custom Field Taxonomies is a plugin that lets you use post metadata as ad-hoc taxonomies.

Register taxonomy

For each taxonomy, you have

  • Tag cloud with all values of that field
  • Show only posts with field = value
  • Any theme can add a meta.php template
  • Several template tags (can be found in meta-template.php)

It also has a nice settings page where you can define which fields to be used as taxonomies.

PHP5 is required.

Reactions (2)

Comments (38)

  • stefano says:

    great plugin but dont work for me

    wwww.mydomain.com/?autore=milena agus

    error:
    warning: missing argument 3 for CFTaxonomies in ……main.php on line 72

  • stefano says:

    so should i put meta-template.php in my theme folder?

    the error comes up on the blue part of the browser…
    and the homepage remain the same.

    can you provide some example for settings?
    i put “autore” in the key field and “autore” in the title field

    thanks!

    • scribu says:

      No, meta-template.php should stay where it is. You can make a copy of your index.php file and rename it meta.php. There you can do the editing. (I’ll rename meta-template.php to something less confusing)

      Your settings are correct. You can go with “Autore” as the title or anything else that suits your needs.

  • stefano says:

    sorry my wordpress is WordPress 2.6.3

  • stefano says:

    “You can make a copy of your index.php file and rename it meta.php. There you can do the editing.”

    what editing you mean?

    • scribu says:

      If you don’t want the filtered posts to be displayed differently, you don’t have to create meta.php.

      Instead, say you want to display the author at the bottom of each post:
      Open index.php and find

      <php the_content() ?>

      or something similar. After it, add this line:

      <?php echo get_linked_meta($post->ID, 'autore') ?>

      (I guess it would be better if I added a filter that automatically did this.)

  • stefano says:

    thanks Scribu

    my dream would be search among meta values
    im interested in the basic core of your plugin
    http://yoursite.com/?foo=bar

    the dream would be to search like
    http://yoursite.com/?s=dog&foo=bar

    ….
    for test i putted
    ID, ‘autore’) ?>

    in my loop
    it comes showing the autore value….and the destination url is
    http://yoursite.com//?autore=Sandra+Petrignani

    but when i click on it
    i go on my homepage
    with the errore i told you
    warning: missing argument 3 for CFTaxonomies in ……main.php on line 72
    and no post (with meta) show up just my NORMAL homepage

    • scribu says:

      I’ll have to do some testing with your version of WP to see what is going on.

      If you just want sorting, you might want to try Smart Sort, althought I don’t think it can permit multiple fields.

  • stefano says:

    i tried Smart Sort but it didn’t work.

    i putted it in a category page…e showed no post

  • stefano says:

    i have a lot of website..ill try on some other

    another question:
    you know how to hack search.php? and sort results grouped by category? or metafield?

  • stefano says:

    did you update your plugin?

  • stefano says:

    i tried your plugin 0.52 on another website:

    it didnt start the plugin

    fatal error

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /web/htdocs/www.arstuavitamea.com/home/atvm/wp-content/plugins/custom-field-taxonomies/inc/scbOptions.php on line 6

    this should be php5

  • stefano says:

    i tried your plugin 0.51 on another server ti worked but it gave me more results

    i think it gave me all results with the right post as first

    http://stefanomavilio.com/blog/?plan=rome

  • stefano says:

    no ..it doesnt work
    http://stefanomavilio.com/blog/?plan=paris
    gave me the same results

  • This plug-in looks interesting.
    I am WP 2.7 and PHP5
    I’ve not tried the plug in yet.

    I am looking for complex taxonomies, not simple hierarchical. I can create these as multiple simple hierarchical taxonomies, provided multiple selects were supported.

    Like the idea of stefano’s “dream” above
    http://yoursite.com/?s=dog&foo=bar
    Can you support this.

    • scribu says:

      I would like to make the plugin work well with just one set first.

      After that, maybe I’ll give it a go.

      So please test the plugin and let me know if something doesn’t work right.

  • stefano says:

    scribu can you provide an example of meta.php?

    • scribu says:

      Like I said, copy whatever you have in your index.php theme file into meta.php and place it in your theme folder also.

  • stefano says:

    i did it!!!

    the problem was my meta.php

    you said i could rename my index.php in meta.php and use it..

    my index.php contain query_posts(’showposts=1&cat=47′); ?> and NOT WORKED

    you need to query post in this way

    so the rights posts come out! ok!

    but..
    still warning..error..missing arguments

  • stefano says:

    PERFECT NOW WITH version is now 0.5.2.1b

    great job scribu!

  • stefano says:

    would be nice to query within a category
    eg. http://www.mydomain.org/category/dogs/?color=black

  • tricky says:

    I havent tried this yet but looks very promising. Interesting way to expand WP.

    Congratulations!

  • JC says:

    Wicked plugin!!!

  • Lifeischoice says:

    Thanks for the plugin…..currently, I have a separate registration page from normal wp because I need to pass 1 or 2 custom field values during registration…. , but I will like to use the normal wp registration directly if possible….can I use your plugin to do this? how?

    • scribu says:

      No, I don’t think you can. This plugin’s job is mainly to display data, instead of collecting it. Sorry.

  • Bohdan says:

    After update for new version my guery like ?key=value not working..

    • scribu says:

      So what do you want me to do with so little information? Please provide more details:
      - WordPress version?
      - Did you define any taxonomies?
      - Does it work with the default theme?

  • JC says:

    Yeah, my meta clouds stopped working too. :(