[wp-hackers] wp_get_categories modification
Konrad Karpieszuk
kkarpieszuk at gmail.com
Tue May 17 09:43:52 UTC 2011
hi
where did you found wp_get_categories? :) do you mean wp_list_categories, right?
i think you should use
http://codex.wordpress.org/Function_Reference/get_categories there you
can specify type of posts
On Sun, May 15, 2011 at 10:18 PM, Sean Newham <seanseviltwin at gmail.com> wrote:
> Hey guys,
> I created a duplicatethe wp_get_categories function to try to only pick
> categories of one type. Upon reading the code, I thought it would be as easy
> as adding the 'type'=>'typename' variable to the default options, and as it
> calls get_category, I thought everything would be hunkydory, but it's not
> working - it gives exactly the same output as without. I tried reading the
> source of walk_category_tree, but tbh this is the first time I have seen the
> walker and I'm not even sure if that is remotely related to the problem.
>
> Hopefully you can see I'm trying, you are my last resort wp-hackers list!
> Best wishes,
> Sean
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
(en) regards / (pl) pozdrawiam
Konrad Karpieszuk
More information about the wp-hackers
mailing list