Display specific taxonomies

  • Author
  • #1233508


    I have a list of different taxonomies within a list, which can be done by the following code:

    <?php wp_list_categories(array('title_li' => '', 'taxonomy' => 'project_tags', 'walker' => new Project_Walker())); ?>

    I need to remove some specific (or show some of them specifically) taxonomies, not all of them as the previous code does. Something like this:

    <?php wp_list_categories(array('title_li' => '', 'taxonomy' => 'project_tags', 'project_tags' => array('audiovisual','web'), 'walker' => new Project_Walker())); ?>

    In the example, obviously, the taxonomies that I hope to show up, was ‘audiovisual’ and ‘web’.
    There’s no problem if anyone came up with a different solution, for example, excluding all taxonomies, except for the ‘audiovisual’ and ‘web’.

    Thank you!



    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.



    That’s not a free hosted WordPress.COM blog. We provide support here only for free hosted WordPress.COM blogs and no others. We cannot help you here. You are posting to the wrong support forums. If you don’t have a username account at WordPress.org click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the support forums there and receive advice from WordPress.org bloggers.

The topic ‘Display specific taxonomies’ is closed to new replies.