Custom Field Taxonomies

Plugin Banner

Custom Field Taxonomies

by scribu

Download
Description

Custom fields are great for storing various meta data about a post. However, if you routinely need to display posts that have a certain custom field value, you should consider switching to a custom taxonomy, which is better suited for grouping posts.

With this simple plugin, you can convert all custom fields with a certain key to terms in a certain taxonomy, while maintaining the post association.

Note: If you’re looking for the old version, see Custom Query Fields

Links: Plugin News | Author’s Site

  1. Unzip the archive and put the folder into your plugins folder (/wp-content/plugins/).
  2. Activate the plugin from the Plugins admin menu.
  3. Go to Tools -> CF Taxonomies
  1. The utility

    The utility

Error on activation: “Parse error: syntax error, unexpected…”

Make sure your host is running PHP 5. The only foolproof way to do this is to add this line to wp-config.php (after the opening <?php tag):

var_dump(PHP_VERSION);

Do not use any more: Plugin is not maintained

By polev on May 6, 2023

The plugin has not been updated since 11 years. When migrating from php 7.4 to 8.1, it causes an blocking error.

very good

By silvarx on October 12, 2018

very nice plugin

Works great

By Anonymous User 7769750 (anonymized_7769750) on May 29, 2017

Well the plugin does exactly what it should do. 4 stars because documentation is poor. Hint: If you have tags seperated by comma then tags will be converted into two taxonomies.

Blimey! It works!

By Jack Hsen (bt7411) on September 3, 2016

It may be 3 years old but it worked for me just now. I would have given it 5 stars but (be aware) it deletes the custom field that it converts. I would have preferred that to be optional. Anyway, thanks to the dev. Saved me having to write a dodgy SQL query.

2.0.3

  • fixed severe bug in custom field dropdown
  • updated scbFramework

2.0.2

  • more detailed error messages
  • convert to any taxonomy with ‘show_ui’ => true

2.0.1

  • fixed error with existing terms
  • proper handling of custom fields with ‘,’ in them
  • more info

2.0

  • new direction: convert custom fields to taxonomy terms
  • more info

1.4

  • added support for ranges: ?price-min=100&price-max=300
  • security enhancements
  • more info

1.3.4

  • fixed “Remove duplicates” button
  • dropped support for WordPress older than 2.8

1.3.3

  • ajax-ed admin page

1.3.2

  • fixed meta_cloud() args

1.3.1

  • fixed “Save taxonomies” button
  • added two hooks

1.3

  • added AND, OR queries
  • fixed compatibility with Smarter Navigation
  • more info

1.2

  • revamped Admin Page
  • option to sort posts by key=value order
  • doesn’t mess with other loops except the main WP loop
  • more info

1.1

  • wildcard support
  • option to show posts that don’t match all key=value pairs
  • more info

1.0

  • several bugfixes and enhancements
  • more info

0.9

0.8

0.7

0.6

0.5

Back to top