Title: nozero's Replies | WordPress.org

---

# nozero

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [$post->(what goes here?)](https://wordpress.org/support/topic/post-what-goes-here/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/post-what-goes-here/#post-1892044)
 * so i can put any field name from the table after $post-> and it will return that
   info?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parent category not a link](https://wordpress.org/support/topic/parent-category-not-a-link/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/parent-category-not-a-link/#post-1531326)
 * it works great the issue is that i was missing a “.” right before “$cat->cat_ID”
   it works great.
 * $categorieschild = get_categories(‘child_of=’$cat->cat_ID);
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parent category not a link](https://wordpress.org/support/topic/parent-category-not-a-link/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/parent-category-not-a-link/#post-1531315)
 * can you help me out with this code. i dont know php so im not sure whats goign
   on.
 *  <?php
    $categories= get_categories(‘parent=0&hide_empty=0’); foreach ($categories
   as $cat) { $categorieschild = get_categories(‘child_of=’$cat->cat_ID); foreach(
   $categorieschild as $catchild) { $xyz = $catchild->cat_name; $xyz .= ‘ (‘.$catchild-
   >category_count.’)’; $xyz .= ‘‘; echo $xyz; } } ?>
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parent category not a link](https://wordpress.org/support/topic/parent-category-not-a-link/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/parent-category-not-a-link/#post-1531310)
 * is there anywhere a list of the information this funstion returns like
 * category_count
    cat_name etc….
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parent category not a link](https://wordpress.org/support/topic/parent-category-not-a-link/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/parent-category-not-a-link/#post-1531309)
 * i needed to add hide_empty=0
    because the top cats dont have anything.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parent category not a link](https://wordpress.org/support/topic/parent-category-not-a-link/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/parent-category-not-a-link/#post-1531303)
 * more clearly.
 * i modified the code to this
 * ‘ <?php
    ‘ $categories= get_categories(‘parent=0’); ‘ foreach ($categories as
   $cat) { ‘ $xyz = $cat->cat_name; ‘ $xyz .= ‘ (‘.$cat->category_count.’)’; ‘ $
   xyz .= ”; ‘ echo $xyz; ‘ } ‘ ?>
 * the point is to get the top most cats then i will loop through each one to get
   their children. the problem is that parent=0 doesnt work
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parent category not a link](https://wordpress.org/support/topic/parent-category-not-a-link/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/parent-category-not-a-link/#post-1531302)
 * ok i figured it out, thanks.
 * so how do i do this that it should know which is the parent not to link it?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parent category not a link](https://wordpress.org/support/topic/parent-category-not-a-link/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/parent-category-not-a-link/#post-1531294)
 * Thanks for your help!
 * I wish i knew hoe to read that kind of code. all i know how to do is use the 
   wordpress functions
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parent category not a link](https://wordpress.org/support/topic/parent-category-not-a-link/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/parent-category-not-a-link/#post-1531282)
 * in what way …
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to redo categories without messing up links.](https://wordpress.org/support/topic/how-to-redo-categories-without-messing-up-links/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/how-to-redo-categories-without-messing-up-links/#post-1465116)
 * i down loaded it. what part need to be set up specifically?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to redo categories without messing up links.](https://wordpress.org/support/topic/how-to-redo-categories-without-messing-up-links/)
 *  Thread Starter [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/how-to-redo-categories-without-messing-up-links/#post-1465090)
 * this looks right. thank you.
 * can i just change the permalinks and this plugin takes care of the rest?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Custom Query Tag = and Tag !=](https://wordpress.org/support/topic/custom-query-tag-and-tag/)
 *  [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/custom-query-tag-and-tag/#post-1040615)
 * i dont know too much about this stuff, i just started querying the worpress db,
   but i copied you query to test and i needed to change the table name to “wp_posts”
   and “wp_postmeta”
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Post via email – 404 – not found](https://wordpress.org/support/topic/post-via-email-404-not-found/)
 *  [nozero](https://wordpress.org/support/users/nozero/)
 * (@nozero)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/post-via-email-404-not-found/#post-1283118)
 * [http://www.coo-coofish.com/blog/wp-mail.php](http://www.coo-coofish.com/blog/wp-mail.php)
   
   try that

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