A call to list all Custom Post Types?
You’ve to take a look at the documentation to know how to use a function, you can’t just replace them. If you do that you’ll see get_post_types() has to be used different then get_categories(). For example you can’t use the parameter hide_empty. Besides that you have to change the $output parameter to objects, default is … Read more