Title: exclude_types won&#8217;t work
Last modified: January 5, 2018

---

# exclude_types won’t work

 *  [blee1021](https://wordpress.org/support/users/blee1021/)
 * (@blee1021)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude_types-wont-work/)
 * Hello,
 * I’m using version 6.2.1 of TeachPress. I am trying to use the exclude_types parameter
   to remove Unpublished, Miscellaneous and Patents from the publication list.
 * As far as I can tell this should work but isn’t:
    [tplist image=”left” image_size
   =”120″ author_name=”simple” style=”simple” link_style=”images” author=”5,296,166,70″
   exclude_types=”Unpublished,Miscellaneous,Patent”]
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude_types-wont-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [blee1021](https://wordpress.org/support/users/blee1021/)
 * (@blee1021)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/exclude_types-wont-work/#post-9856163)
 * I have continued to try to get the exclude_types to work. It seems to work if
   I only want to exclude one type i.e. exclude_types=”patent” or exclude_type=”
   misc” but if I try to exclude more than one type i.e. exclude_types=”patent, 
   misc, unpublished” it will not exclude the types. I have opted to use the type
   = shortcode and I am able to get it to work for me. I would like to know what
   I am doing wrong on the exclude_types shortcode if you have a moment.
 *  Plugin Author [winkm89](https://wordpress.org/support/users/winkm89/)
 * (@winkm89)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/exclude_types-wont-work/#post-10036177)
 * Hi,
 * Thanks for reporting. This is a bug which will be fixed with the next version.
   This bug can also be fixed in a simple way: [https://github.com/winkm89/teachPress/commit/ecee7ba5d221aaab62294eed8d14191bbc5b7af2](https://github.com/winkm89/teachPress/commit/ecee7ba5d221aaab62294eed8d14191bbc5b7af2)
 *  [marionwien](https://wordpress.org/support/users/marionwien/)
 * (@marionwien)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/exclude_types-wont-work/#post-10061826)
 * Hi Michael,
 * I really like your plugin and implemented your explanation about custom labels(
   [https://github.com/winkm89/teachPress/wiki/Create-custom-labels-for-publication-lists](https://github.com/winkm89/teachPress/wiki/Create-custom-labels-for-publication-lists))–
   see: [https://kaiserinnen.oeaw.ac.at/?page_id=63&lang=en](https://kaiserinnen.oeaw.ac.at/?page_id=63&lang=en).
   However now I wonder how I could add the custom labels to the filter “type” in
   tpcloud?
 * Thanks for your help.
 * All the best,
    Marion
 *  Plugin Author [winkm89](https://wordpress.org/support/users/winkm89/)
 * (@winkm89)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/exclude_types-wont-work/#post-10062453)
 * Hi Marion,
 * It’s not possible to filter publications in such way. Maybe tags are a better
   option in your case?
 *  [marionwien](https://wordpress.org/support/users/marionwien/)
 * (@marionwien)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/exclude_types-wont-work/#post-10062467)
 * Thanks, Michael. Yes, I will use the tags. However then I would like to hide 
   the filter “Type”. I tried to use the same code like you suggested for hiding
   the filter “user” (show_user_filter=”0″). But it does not work with “show_types_filter
   =”0”. Any suggestions here?
 * Best,
    Marion
 *  Plugin Author [winkm89](https://wordpress.org/support/users/winkm89/)
 * (@winkm89)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/exclude_types-wont-work/#post-10062799)
 * There was no option for hiding the type filter. So, after an update to 6.2.3,
   which is available now 😉 , it should work with:
    `[tpcloud show_type_filter="
   0"]`
 * **Please note:** Save your changed publication template files before the update.
 * Kind regards,
    Michael
 *  [marionwien](https://wordpress.org/support/users/marionwien/)
 * (@marionwien)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/exclude_types-wont-work/#post-10062919)
 * Great, I updated it right away and it works 🙂 Thanks for the fast work!
 * Kind regards,
    Marion

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘exclude_types won’t work’ is closed to new replies.

 * ![](https://ps.w.org/teachpress/assets/icon-256x256.png?rev=1110789)
 * [teachPress](https://wordpress.org/plugins/teachpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/teachpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/teachpress/)
 * [Active Topics](https://wordpress.org/support/plugin/teachpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/teachpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/teachpress/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [marionwien](https://wordpress.org/support/users/marionwien/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/exclude_types-wont-work/#post-10062919)
 * Status: not resolved