{"id":32746,"date":"2014-11-11T00:47:53","date_gmt":"2014-11-11T00:47:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/go-taxonomy\/"},"modified":"2014-11-11T01:11:22","modified_gmt":"2014-11-11T01:11:22","slug":"go-taxonomy","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/go-taxonomy\/","author":3699079,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"4.0.38","requires":"3.6.1","requires_php":"","requires_plugins":"","header_name":"Gigaom Taxonomy Registration","header_author":"Gigaom <support@gigaom.com>","header_description":"","assets_banners_color":"","last_updated":"2014-11-11 01:11:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/gigaom.com\/","header_author_uri":"http:\/\/gigaom.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":843,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[940,1901],"plugin_category":[57],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-32746","plugin","type-plugin","status-closed","hentry","plugin_tags-taxonomies","plugin_tags-terms","plugin_category-taxonomy","plugin_committers-methnen"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/go-taxonomy.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Registers taxonomies programtically from a config array and provides other helper functions.<\/p>\n <p>We needed a way to add taxonomies that we rely on accross sites and managing those was becomeing cumbersome.  This allows us to manage them via a config array.<\/p>\n <p>The plugin also provides workarounds for limitations in WordPress handling of terms in feeds and post term sorting.<\/p>\n <h4>Sorted Terms<\/h4>\n <p>There's also a <code>sorted_terms<\/code> helper function you can use in plugins and templates like this:<\/p>\n <pre><code>go_taxonomy()-&gt;sorted_terms( $post_id, $args ); <\/code><\/pre>\n <h4>Parameters<\/h4>\n <p><strong>$post_id<\/strong><\/p>\n <p><em>(int) (optional)<\/em> The ID of the post you want to get sorted terms for<\/p>\n <h4>Argument Options<\/h4>\n <p><strong>taxonomies<\/strong><\/p>\n <p><em>(array)<\/em><\/p>\n <ul>\n<li>array( 'post_tag' ) - Default<\/li>\n<\/ul>\n <p><strong>number<\/strong><\/p>\n <p><em>(int)<\/em><\/p>\n <ul>\n<li>99 - Default<\/li>\n<\/ul>\n <p><strong>format<\/strong><\/p>\n <p><em>(string)<\/em><\/p>\n <ul>\n<li>list - Default<\/li>\n<li>array<\/li>\n<li>name<\/li>\n<\/ul>\n <p><strong>orderby<\/strong><\/p>\n <p><em>(string)<\/em><\/p>\n <ul>\n<li>name - Default<\/li>\n<li>count : terms ordered by their usage count<\/li>\n<\/ul>\n <p><strong>order<\/strong><\/p>\n <p><em>(string)<\/em><\/p>\n <ul>\n<li>ASC - Default<\/li>\n<li>DESC<\/li>\n<\/ul>\n <h4>Report Issues, Contribute Code, or Fix Stuff<\/h4>\n <p>https:\/\/github.com\/GigaOM\/go-taxonomy\/<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Place the plugin folder in your <code>wp-content\/plugins\/<\/code> directory and activate it.<\/li>\n<li>Follow the configuration instructions<\/li>\n<\/ol>\n <h4>Configuration<\/h4>\n <ol>\n<li>Add a filter on the <code>go_config<\/code> hook that returns an array of taxonomies when the the 2nd paramter is <code>go-taxonomy<\/code><\/li>\n<li><p>Config array format example:<\/p>\n <p>array(     'register_taxonomies' =&gt; array(         'company' =&gt; array(             'object_type' =&gt; 'post',             'args' =&gt; array(                 'label'     =&gt; 'Companies',                 'query_var' =&gt; TRUE,                 'rewrite'   =&gt; array(                     'slug'    =&gt; 'company',                     'with_front' =&gt; TRUE,                     'ep_mask' =&gt; EP_TAGS,                 ),                 'show_ui'   =&gt; TRUE,             ),         ),         'person' =&gt; array(             'object_type' =&gt; 'post',             'args' =&gt; array(                 'label'     =&gt; 'People',                 'query_var' =&gt; TRUE,                 'rewrite'   =&gt; array(                     'slug'    =&gt; 'person',                     'with_front' =&gt; TRUE,                     'ep_mask' =&gt; EP_TAGS,                 ),                 'show_ui'   =&gt; TRUE,             ),         ),         'technology' =&gt; array(             'object_type' =&gt; 'post',             'args' =&gt; array(                 'label'     =&gt; 'Technologies and Products',                 'query_var' =&gt; TRUE,                 'rewrite'   =&gt; array(                     'slug'    =&gt; 'technology',                     'with_front' =&gt; TRUE,                     'ep_mask' =&gt; EP_TAGS,                 ),                 'show_ui'   =&gt; TRUE,             ),         ),     ),     \/\/ Taxonomies you want returned as category meta in feeds     'the_category_rss_taxonomies' =&gt; array(         'post_tag',         'company',         'person',         'technology',     ), );<\/p><\/li>\n<\/ol>","raw_excerpt":"Registers taxonomies programtically from a config array and provides other helper functions.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/32746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=32746"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/methnen"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=32746"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=32746"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=32746"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=32746"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=32746"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=32746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}