search-filter icon indicating copy to clipboard operation
search-filter copied to clipboard

post_type url parameter

Open hiro288 opened this issue 10 years ago • 3 comments

fixed post_type url parameter

hiro288 avatar Jan 15 '15 09:01 hiro288

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 :)

rmorse avatar Jan 15 '15 13:01 rmorse

but it doesnt seems to work when you set 1 cpt

hiro288 avatar Jan 15 '15 13:01 hiro288

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

rmorse avatar Jan 15 '15 13:01 rmorse