Trying to add function with pre_get_posts for plugin search [closed]
It’s hard to be sure without he error, but this part of code looks pretty weird: if ( is_post_type_archive( epl_all_post_types() == ‘true’ ) ) { is_post_type_archive gets one param and it should be post type or array of post types. But in your code you pass a logical statement in there (so true or false). … Read more