Timeline for Getting Category Children
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 30, 2015 at 4:56 | comment | added | Pieter Goosen |
No problem and my pleasure, ja, I've added the var_dump() just to show you the output from the code. Should have told you to just remove that :-). Enjoy
|
|
Jun 30, 2015 at 4:48 | comment | added | Yahya98 |
Thanks a lot for the help, i found the problem, i only need to remove one line var_dump( $terms ); and everything works like i wanted. Thank you very much :D
|
|
Jun 30, 2015 at 4:37 | comment | added | Yahya98 | Uhm, i wanted to create a page with categories listed in alphabetical order.. prntscr.com/7mzf71 | |
Jun 30, 2015 at 4:33 | comment | added | Pieter Goosen | Do you need to build a tree | |
Jun 30, 2015 at 4:25 | comment | added | Yahya98 | I'm very sorry of my stupidness, but i don't even understand the script.. i'm using the script you gave me in my previous question.. pastebin.com/b3zwDzFG which one should i remove to exclude the whole thing except the title? | |
Jun 30, 2015 at 4:17 | comment | added | Pieter Goosen |
If you need something specific returned, look at the fields parameters. You need to understand, get_terms returns an object of terms, so you need a foreach loop to print the names of the categories
|
|
Jun 30, 2015 at 3:59 | comment | added | Yahya98 |
My apologize before, this script worked, but there's a small problem, it returns everything like description slug, count, and others.. i tried to use the "exclude" arg, but again, i don't know how it works... my webpage doesn't load when i add the exclusion.. or am i doing wrong with this? 'exclude' => description, slug
|
|
Jun 30, 2015 at 3:55 | vote | accept | Yahya98 | ||
Jun 29, 2015 at 17:09 | history | answered | Pieter Goosen | CC BY-SA 3.0 |