Let user select their own category

User taxonomies can help you achieve this, I’m working on something similar. You can install the plugin http://wordpress.org/plugins/user-taxonomies/, and register a custom taxonomy , although in my case the plugin has some limitations, may be it helps you. register_taxonomy(‘profession’, ‘user’, array( ‘public’ =>true, ‘labels’ =>array( ‘name’ =>’Professions’, ‘singular_name’ =>’Profession’, ‘menu_name’ =>’Professions’, ‘search_items’ =>’Search Professions’, ‘popular_items’ … Read more

How to get all the items of a taxonomy even if it does not have a custom post type?

Add a hide_empty argument: $termsq = get_terms(“competence”,array(‘hide_empty’=>false)); See the Codex for the complete argument list. Additionally, get_terms will return a WP_Error object on failure, so your count check won’t work. You need is_wp_error. $termsq = get_terms(“competence”,array(‘hide_empty’=>false)); if (!is_wp_error($termsq)) { echo “<ul>”; foreach ( $termsq as $termq ) { echo “<li>” . $termq->name . “</li>”; } … Read more

Display posts from tagchildren of taxonomy tagparents

If anyone’s interested, below is the solution that worked out for me. Credits go to Akshay Paghdar. $taxonomyName = “group”; $terms = get_terms($taxonomyName,array(‘parent’ => 0)); echo ‘<ul>’; foreach($terms as $term) { echo ‘<li><a href=”‘.get_term_link($term->slug,$taxonomyName).'”>’.$term->name.'</a>’; $term_children = get_term_children($term->term_id,$taxonomyName); echo ‘<ul>’; foreach($term_children as $term_child_id) { $term_child = get_term_by(‘id’,$term_child_id,$taxonomyName); echo ‘<li><a href=”‘ . get_term_link( $term_child->name, $taxonomyName ) . … Read more

Taxonomy.php error appearing in the header of my site [closed]

The problem is going to be with theme or plugin code, not with the Core code. Something is using that function incorrectly. For example, this: taxonomy_exists(array()); … produces a Warning that ought to look familiar: Warning: Illegal offset type in isset or empty in /path/to/wordpress/wp-includes/taxonomy.php on line 231 So, somewhere, something is passing a bad … Read more

Taxonomy vs Post Status

Probably post_status but this answer is probably irrelevant in your case. You have your own application with its own usage pattern of the DB therefor the assumptions used when designing wordpress DB for use by core might not fit you. Maybe you will need to add another index to the posts table, maybe create optimized … Read more