# Would love some help :)

**URL:** <https://community.swiftype.com/t/would-love-some-help/609>\
**Category:** Helpline\
**Created:** [March 6, 2018, 9:38pm UTC](https://community.swiftype.com/t/would-love-some-help/609 "2018-03-06T21:38:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steph](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@steph](https://community.swiftype.com/u/steph)\
**Post date:** [March 6, 2018, 9:38pm UTC](https://community.swiftype.com/t/would-love-some-help/609/1 "2018-03-06T21:38:08Z")

</div>

Hi there,

I am trying to restrict the swiftype search paramaters to display only published and public pages, but I’m worried I’m going to mess it up. (I am not a developer or coder and should not be left alone with wordpress themes, but I’m the only one here to do it, so please help!)

I’ve narrowed in on our swiftype search params code in the functions.php. Pasted below

* * *

///////////////////////// search params ////////////////////////////  
function swiftype\_search\_params\_filter( $params ) {  
// set the types to allow  
$params[‘filters[posts][object\_type]’] = array(  
‘post’,  
‘episode’,  
‘series’,  
‘product’,  
‘webinar’,  
‘course’,  
‘week’,  
‘vault’  
);

```
return $params;

```

}

add\_filter( ‘swiftype\_search\_params’, ‘swiftype\_search\_params\_filter’, 8, 1 );

function swiftype\_javascript\_config() {  
?\>  
  
\<?php  
}

add\_action( ‘wp\_head’, ‘swiftype\_javascript\_config’ );

* * *

If anyone could help me decide the best way to edit this or add something to make the search buckets only display published public pages that would be so great.

Thanks!

---

<div class="post-metadata">

**Author:** ![smiller](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@smiller](https://community.swiftype.com/u/smiller)\
**Post date:** [March 15, 2018, 7:09pm UTC](https://community.swiftype.com/t/would-love-some-help/609/2 "2018-03-15T19:09:30Z")

</div>

Did you see this previous question? [How can I exclude certain posts from search results using the Swiftype WordPress plugin?](https://community.swiftype.com/t/how-can-i-exclude-certain-posts-from-search-results-using-the-swiftype-wordpress-plugin/166)
