@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/?p=105>
  a sioc:Post ;
  dc:title "LH User Taxonomies" ;
  dcterms:identifier 105 ;
  dc:modified "2022-09-06T21:20:26Z"^^xsd:dateTime ;
  dc:created "2015-03-01T15:40:21Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-user-taxonomies/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded """
<p class="wp-block-paragraph">This plugin is&nbsp;heavily inspired by previous work by Justin Tadlock in explaining how WordPress actually support taxonomies for users and what <a href="https://justintadlock.com/archives/2011/10/20/custom-user-taxonomies-in-wordpress/">additional code</a> needs to be&nbsp;added to support this.</p>



<p class="wp-block-paragraph">On the back of that&nbsp;Damian Gostomski wrote a <a title="Original user taxonomy plugin" href="https://wordpress.org/plugins/user-taxonomies/">plugin</a> and added it too the repository to add&nbsp;said functionality. However the plugin was incomplete and development has stopped. As I am using this sort of functionality in the LocalHero project I have fixed some bugs in the original code and also added some new functionality so that when you use register_taxonomy to register a taxonomy for users you have almost as much control as if he taxonomy was for posts.</p>



<p class="wp-block-paragraph">After numerous unsuccessful attempts to contact the plugin author to incorporate my enhancements I have forked the original plugin.</p>



<p class="wp-block-paragraph">Fixes and enhancements to the original plugin include:</p>



<ul class="wp-block-list"><li>Fixes a bug with display of existing user taxonomies in the user-edit screen</li><li>Fixes a bug with taxonomy count in the old plugin where deleting users did not update the count</li><li>Add support for &#8216;single_value&#8217; attribute when registering a user taxonomy for taxonomies which should only have one value.</li><li>Properly supports the capabilities associated with the taxonomy when registered.</li><li>Supports &#8216;show_admin_column&#8217; attribute when registering the taxonomy in the same way as post taxonomies.</li><li>When &#8216;show_admin_column&#8217; is set to true admins can bulk edit the user taxonomy.</li></ul>



<p class="wp-block-paragraph">Going forward&nbsp; will further enhance this plugin to incorporate the &#8216;hierarchical&#8217; attribute used in registration&nbsp;when assigning a user taxonomy.</p>



<h3 class="wp-block-heading">Questions</h3>



<p class="wp-block-paragraph"><strong>How do I get a user taxonomy to act like a category</strong><br>Answer: By default user taxonomies are non hierarchical but if you need them to to have parent and child functionality then set &#8216;hierarchical&#8217; =&gt; true, when regiustering and be sure to remove the single value restriction.</p>



<p class="wp-block-paragraph"><strong>How do I get a user taxonomy to act like a post tag.</strong><br>Answer: It does not support free form entry yet but i future releases this is planned.</p>
"""^^rdf:XMLLiteral ;
  sioc:content """
This plugin is&nbsp;heavily inspired by previous work by Justin Tadlock in explaining how WordPress actually support taxonomies for users and what additional code needs to be&nbsp;added to support this.



On the back of that&nbsp;Damian Gostomski wrote a plugin and added it too the repository to add&nbsp;said functionality. However the plugin was incomplete and development has stopped. As I am using this sort of functionality in the LocalHero project I have fixed some bugs in the original code and also added some new functionality so that when you use register_taxonomy to register a taxonomy for users you have almost as much control as if he taxonomy was for posts.



After numerous unsuccessful attempts to contact the plugin author to incorporate my enhancements I have forked the original plugin.



Fixes and enhancements to the original plugin include:



Fixes a bug with display of existing user taxonomies in the user-edit screenFixes a bug with taxonomy count in the old plugin where deleting users did not update the countAdd support for &#8216;single_value&#8217; attribute when registering a user taxonomy for taxonomies which should only have one value.Properly supports the capabilities associated with the taxonomy when registered.Supports &#8216;show_admin_column&#8217; attribute when registering the taxonomy in the same way as post taxonomies.When &#8216;show_admin_column&#8217; is set to true admins can bulk edit the user taxonomy.



Going forward&nbsp; will further enhance this plugin to incorporate the &#8216;hierarchical&#8217; attribute used in registration&nbsp;when assigning a user taxonomy.



Questions



How do I get a user taxonomy to act like a categoryAnswer: By default user taxonomies are non hierarchical but if you need them to to have parent and child functionality then set &#8216;hierarchical&#8217; =&gt; true, when regiustering and be sure to remove the single value restriction.



How do I get a user taxonomy to act like a post tag.Answer: It does not support free form entry yet but i future releases this is planned.
""" ;
  foaf:depiction <https://lhero.org/?p=114> ;
  sioc:topic <https://lhero.org/lh_portfolio-type/plugin/> ;
  sioc:attachment <https://lhero.org/?p=114> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?p=114>
  a foaf:Image ;
  rdfs:seeAlso <https://lhero.org/portfolio/lh-user-taxonomies/image/?feed=lhrdf&format=turtle> .

<https://lhero.org/lh_portfolio-type/plugin/> rdfs:seeAlso <https://lhero.org/lh_portfolio-type/plugin/?feed=lhrdf&format=turtle> .
