jtsternberg / Code-Snippets-CPT

A WordPress plugin for managing and displaying code snippets
http://dsgnwrks.pro
19 stars 17 forks source link

Exclude from search #7

Closed gregrickaby closed 9 years ago

gregrickaby commented 9 years ago

Probably don't want the snippets themselves to be visible via search results

jtsternberg commented 9 years ago

That's a good question. If that's the case, we probably don't want them public at all, right? (has_archive, publicly_queryable). There may be some people who want all that (including searchable) because they plan on using the plugin on a site dedicated to snippets.

gregrickaby commented 9 years ago

In the case of WDS7 we do NOT want them "public" since they are part of blog post content.

jtsternberg commented 9 years ago

Understood. I get the value of them not being public. The question (I thought) is what the default should be. Either way, the exception can be handled with the already existing args filter: snippet_cpt_registration_args, and is what I recommend using for WDS7.