search-filter
search-filter copied to clipboard
post_type url parameter
fixed post_type url parameter
Hey @naeemnur I'm afraid this is incorrect. The post_type parameter is native WordPress - so will work anywhere - however it only takes one argument. I implemented post_types
so that we can pass multiple post types to it - eg post_types=post,page
:)
but it doesnt seems to work when you set 1 cpt
Hmm I don't recall this being the case but I'll take a look - the change you have made above does effectively remove support for multiple post types - so the solution would be to fix post_types
to also work with a single post type rather than switching it all over to use post_type