Title: Khal3d's Replies | WordPress.org

---

# Khal3d

  [  ](https://wordpress.org/support/users/khal3d/)

 *   [Profile](https://wordpress.org/support/users/khal3d/)
 *   [Topics Started](https://wordpress.org/support/users/khal3d/topics/)
 *   [Replies Created](https://wordpress.org/support/users/khal3d/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/khal3d/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/khal3d/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/khal3d/engagements/)
 *   [Favorites](https://wordpress.org/support/users/khal3d/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [How can I create blogs on different path?](https://wordpress.org/support/topic/how-can-i-create-blogs-on-different-path/)
 *  Thread Starter [Khal3d](https://wordpress.org/support/users/khal3d/)
 * (@khal3d)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/how-can-i-create-blogs-on-different-path/#post-2126305)
 * I’m using root directory for another thing!
    Can’t use it for installing wordpress!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [How can I get custom posts by category?](https://wordpress.org/support/topic/how-can-i-get-custom-posts-by-category/)
 *  Thread Starter [Khal3d](https://wordpress.org/support/users/khal3d/)
 * (@khal3d)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-get-custom-posts-by-category/#post-2004664)
 * I found the solution to get custom posts By category “term” Not ID
 *     ```
       $posts = new WP_Query(array('taxonomy' => 'portfolio-categories', 'term' => $category->slug));
       		while ( $posts->have_posts() )
       		{
       			$posts->the_post();
       			// Dot somethings
       		}
       		wp_reset_query();
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do i add "Tags" to custom post types?](https://wordpress.org/support/topic/how-do-i-add-tags-to-custom-post-types/)
 *  Thread Starter [Khal3d](https://wordpress.org/support/users/khal3d/)
 * (@khal3d)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/how-do-i-add-tags-to-custom-post-types/#post-1679863)
 * I found a solution to enable tags in custom post types by adding this code to
   register_post_type
    `'taxonomies' => array('post_tag')`
 * by the way i’m looking for another solution because some plugin doesn’t have 
   this code and tags working fine … i don’t know why 😀
 * And this solution use tags for post and make it available for posts and my custom
   post!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do i add "Tags" to custom post types?](https://wordpress.org/support/topic/how-do-i-add-tags-to-custom-post-types/)
 *  Thread Starter [Khal3d](https://wordpress.org/support/users/khal3d/)
 * (@khal3d)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/how-do-i-add-tags-to-custom-post-types/#post-1679688)
 * This is my code and every thing is working fine but unfortunately tags not working
   with me!
 * `'supports' => array('title', 'thumbnail', 'excerpt', 'comments', 'custom-fields','
   tags')`

Viewing 4 replies - 1 through 4 (of 4 total)