0

I need to show a list of custom post type classified by terms. The idea is something like this:

Service list:

<ul>
 <li>
   <a href="#">Webdesign (taxonomy term)</a>
   <ul>
     <li>Business Website A (custom post type from this taxonomy term)</li>
     <li>Business Website B (custom post type from this taxonomy term)</li>
     <li>Business Website C (custom post type from this taxonomy term)</li>
   </ul>
 </li>
 <li>
   <a href="#">Illustration (taxonomy term)</a>
   <ul>
     <li>Business Illustration A (custom post type from this taxonomy term)</li>
     <li>Business Illustration B (custom post type from this taxonomy term)</li>
     <li>Business Illustration C (custom post type from this taxonomy term)</li>
   </ul>
 </li>
 <li>Other service without taxonomy (if has no taxonomy, show in first level)</li>
</ul>

I've tried the wp_list_pages and wp_list_categories, but without success. Could someone give me a hint how to proceed?

  • Question answered here: stackoverflow.com/a/16300903/1981996 – diggy Apr 30 '13 at 14:28
  • I need a little more information on how to do. Could you help me? – Brightweb Apr 30 '13 at 14:32
  • @Brightweb Multi-posts are very bad. You ask us to duplicate others work. Really? – fuxia Apr 30 '13 at 14:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.