nozero
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: $post->(what goes here?)so i can put any field name from the table after $post-> and it will return that info?
Forum: Fixing WordPress
In reply to: Parent category not a linkit 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
In reply to: Parent category not a linkcan 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
In reply to: Parent category not a linkis there anywhere a list of the information this funstion returns like
category_count
cat_name
etc….Forum: Fixing WordPress
In reply to: Parent category not a linki needed to add hide_empty=0
because the top cats dont have anything.Forum: Fixing WordPress
In reply to: Parent category not a linkmore 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
In reply to: Parent category not a linkok 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
In reply to: Parent category not a linkThanks 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
In reply to: Parent category not a linkin what way …
Forum: Fixing WordPress
In reply to: how to redo categories without messing up links.i down loaded it. what part need to be set up specifically?
Forum: Fixing WordPress
In reply to: how to redo categories without messing up links.this looks right. thank you.
can i just change the permalinks and this plugin takes care of the rest?
Forum: Plugins
In reply to: Custom Query Tag = and Tag !=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
In reply to: Post via email – 404 – not found