Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Convert custom field values to taxonomy terms
PHP
branch: master
Failed to load latest commit information.
lang l10n
scb @ 7b94561 update scb
.gitmodules read-only scb submodule
admin.php use wp_set_post_terms()
custom-field-taxonomies.php 2.0.3 final
readme.txt 2.0.3 final

readme.txt

=== Custom Field Taxonomies ===
Contributors: scribu
Tags: custom fields, meta, metadata, taxonomy
Requires at least: 3.2
Tested up to: 3.4
Stable tag: 2.0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Convert custom fields to tags, categories or taxonomy terms

== 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](http://codex.wordpress.org/Custom_Taxonomies), 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](http://wordpress.org/extend/plugins/custom-query-fields/)


Links: [Plugin News](http://scribu.net/wordpress/custom-field-taxonomies) | [Author's Site](http://scribu.net)

== Installation ==

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

== Frequently Asked Questions ==

= 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);`
<br>

== Screenshots ==

1. The utility

== Changelog ==

= 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](http://scribu.net/wordpress/custom-field-taxonomies/cft-2-0.html)

= 2.0 =
* new direction: convert custom fields to taxonomy terms
* [more info](http://scribu.net/wordpress/custom-field-taxonomies/change-of-direction.html)

= 1.4 =
* added support for ranges: ?price-min=100&price-max=300
* security enhancements
* [more info](http://scribu.net/wordpress/custom-field-taxonomies/cft-1-4.html)

= 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](http://scribu.net/wordpress/custom-field-taxonomies/cft-1-3.html)

= 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](http://scribu.net/wordpress/custom-field-taxonomies/cft-1-2.html)

= 1.1 =
* wildcard support
* option to show posts that don't match all key=value pairs
* [more info](http://scribu.net/wordpress/custom-field-taxonomies/cft-1-1.html)

= 1.0 =
* several bugfixes and enhancements
* [more info](http://scribu.net/wordpress/custom-field-taxonomies/cft-1-0.html)

= 0.9 =
* meta search box
* [more info](http://scribu.net/wordpress/custom-field-taxonomies/cft-0-9.html)

= 0.8 =
* custom field management
* [more info](http://scribu.net/wordpress/custom-field-taxonomies/cft-0-8.html)

= 0.7 =
* multiple key=value pairs
* [more info](http://scribu.net/wordpress/custom-field-taxonomies/cft-0-7.html)

= 0.6 =
* relative URLs
* [more info](http://scribu.net/wordpress/custom-field-taxonomies/cft-0-6.html)

= 0.5 =
* initial release
* [more info](http://scribu.net/wordpress/custom-field-taxonomies/cft-0-5.html)

Something went wrong with that request. Please try again.