Title: Feature request &#8211; Exclude by URL?
Last modified: August 22, 2016

---

# Feature request – Exclude by URL?

 *  Resolved [Scott Hendison](https://wordpress.org/support/users/cyber49/)
 * (@cyber49)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/)
 * First, let me say that we love your plugin and I’ve never found a better one.
   However, we have an issue that I hope you’ll consider…
 * On multiple client sites we have a testimonials plugin that we love (free version
   here – [https://wordpress.org/plugins/testimonials-widget/](https://wordpress.org/plugins/testimonials-widget/)
   although we use the premium)
 * Unfortunately, your plugin does not recognize the post type for inclusion or 
   exclusion…
 * My programmer says that the testimonials are not a custom post type, and although
   I’m a bit fuzzy on that, she did say that another workaround would be for Conditional
   Widgets to have a manual URL ID option… Might that be possible?
 * For a variety of reasons, (including structured data / schema integration) that
   testimonials plugin is the best available option out there.
 * Unfortunately, the lack of exclusionary ability leads to messy pages like this–
   [http://www.jandmhomes.com/testimonial/sharon-carr/](http://www.jandmhomes.com/testimonial/sharon-carr/)–
   where, for example, we have all of the widgets that we normally include on just
   one single page, showing staff contact info for a single location.
 * This situation affects seven client sites, so might you consider either adding
   an “exclude by URL” option, or – better yet – might you be available for hire
   to investigate making this compatible with their plugin?
 * Thanks in advance for any response…
 * PS – Is there noplace to make a donation to this plugin?
 * [https://wordpress.org/plugins/conditional-widgets/](https://wordpress.org/plugins/conditional-widgets/)

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

 *  Plugin Author [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309324)
 * Heya
 * Excluding by URL is definitely a nice feature, but it’s sadly outside the scope
   of this plugin. What we’d originally set out to do, and what most people seem
   to like about the plugin, is that it’s so simple. (In fact, I even regret adding
   some of the ‘special page’ options that clutter things up.)
 * It does seem quite weird that Testimonials aren’t actually a post type (which
   is too bad, otherwise I think we could make this work pretty easily.)
 * I took a look at your site, and I can’t actually tell what kind of post type 
   the URL you linked to is (the <body> tag is empty), if it’s even a post type 
   at all. If it’s a proper post of any type, you could probably make it work pretty
   easily by associating a new taxonomy with it.
 * Otherwise, might I recommend [https://wordpress.org/plugins/display-widgets/](https://wordpress.org/plugins/display-widgets/)?
 * > PS – Is there noplace to make a donation to this plugin?
 * I’m not sure this plugin drinks beer – but I sure do! I’ve sprinkled some donate
   buttons onto some of my personal websites which I’m sure you’ll have no trouble
   locating if you’re so inclined. Cheers 🙂
 *  Thread Starter [Scott Hendison](https://wordpress.org/support/users/cyber49/)
 * (@cyber49)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309431)
 * thx for the details – for what it’s worth, I think the “special” options are 
   necessary. sure “Clean” is nice, but “functional” is better 😉
 * By the way, I try to always donate to great plugins I use regularly, and there’s
   no donation option built in the plugin, none from WP repository page, and I swear
   there was none on the “author website” last week or yesterday morning – was there?–
   [http://madtownlems.wordpress.com/](http://madtownlems.wordpress.com/) – but 
   searching this morning I found one – donation accomplished…
 *  [Michael Cannon](https://wordpress.org/support/users/comprock/)
 * (@comprock)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309448)
 * Jason,
 * Testimonials Widget is a custom post type, `testimonials-widget`. How would we
   work with that to prevent widgets displaying on that single or archive page?
 * For your donations, your profile at [https://wordpress.org/support/profile/madtownlems](https://wordpress.org/support/profile/madtownlems)
   doesn’t list a website. However, [https://profiles.wordpress.org/madtownlems/](https://profiles.wordpress.org/madtownlems/)
   does.
 * You can add a donations link to your plugin’s `readme.txt` file just below your`
   Contributers` entry like `Donate link: http://aihr.us/about-aihrus/donate/`.
 *  [Dzynit](https://wordpress.org/support/users/dzynit/)
 * (@dzynit)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309449)
 * Jason, thanks so much for answering Scott so quickly and taking the time to check
   this out.
 * I have a thought on maybe a way to make this work. Using you’re option in the
   widgets to hide on all author archives works perfectly: [http://www.jandmhomes.com/author/heather/](http://www.jandmhomes.com/author/heather/)
 * My thought is, since the individual testimonials use the single.php theme template–
   I could add a php conditional in that template to make it seem like it’s a regular
   wordpress author page. Then the hide on author archives conditional option of
   the widget should work for these pages.
 * Could you tell me what your plugin looks for to know when it’s on a regular wordpress
   author page? I tried looking through your plugin code some but couldn’t find 
   what it checks for. If this would work, it could be a decent solution.
 * Thanks, Heather (Scott’s programmer)
 *  [Dzynit](https://wordpress.org/support/users/dzynit/)
 * (@dzynit)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309450)
 * Michael,
    I didn’t see your reply on here until after I posted. Thanks much for
   getting involved! I’ll leave my last reply on just in case it would be a quick-
   fix. But I think that would be great for you two to work together on a better
   solution because we do use both plugins together on a lot of sites.
 *  Plugin Author [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309461)
 * If you’re just trying to hide these widgets on ALL testimonial pages, I think
   that’s actually quite easy – see this thread for info on using a filter to add
   support for a new type/taxonomy pair:
 * [https://wordpress.org/support/topic/no-longer-working-for-custom-post-types-sidebars?replies=11](https://wordpress.org/support/topic/no-longer-working-for-custom-post-types-sidebars?replies=11)
 * If Testimonials DO have a taxonomy associated with them, then obviously use that
   and this should hopefully work flawlessly.
 * If Testimonials don’t have a taxonomy associated with them, I think you can get
   by just using any existing taxonomy (so long as you’re trying to HIDE or SHOW
   on all items of that post type), so try just using any existing taxonomy, say‘
   category’ (and just ignore the box in the form where it outputs all your categories).
 * I’m hoping to add the ability to support custom post types that AREN’T associated
   with a taxonomy to function just like Page Logic, but that doesn’t exist quite
   yet.
 * Let me know how it goes!
 *  Plugin Author [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309483)
 * I took some time this morning to check out the Testimonials Widget plugin you’re
   using and confirmed that this should work for you:
 * // Add Conditional Widgets support (UI & Logic) for post type ‘testimonials-widget’
   and taxonomy ‘category’
 * add_filter(‘conditional_widgets_type_tax_pairs’, ‘testimonials_conditional_widget_type_tax_pairs’);
 * function testimonials_conditional_widget_type_tax_pairs( $pairs_array ) {
 *  $testimonial_pair = array(‘tax’=>’category’, ‘type’=>’testimonials-widget’);
   
   $pairs_array[] = $testimonial_pair;
 *  return $pairs_array;
    }
 *  [Dzynit](https://wordpress.org/support/users/dzynit/)
 * (@dzynit)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309485)
 * Thank you Jason! That worked perfectly.
 *  Thread Starter [Scott Hendison](https://wordpress.org/support/users/cyber49/)
 * (@cyber49)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309487)
 * Jason, you’re awesome, thank you so much!
 *  Plugin Author [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309496)
 * Great – I’ll mark this as resolved, and will hopefully get some documentation
   and cleanup of this new functionality out soon.

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

The topic ‘Feature request – Exclude by URL?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/conditional-widgets_d1d1d1.svg)
 * [Conditional Widgets](https://wordpress.org/plugins/conditional-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/conditional-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/conditional-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/conditional-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/conditional-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/conditional-widgets/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/feature-request-exclude-by-url/#post-5309496)
 * Status: resolved