All post types are included in the results
-
Hi,
I’m currently working on a local site and just tried your plugin. Unfortunately, with the current versions of Divi and WP at least, every existing post type is included in the search results.
It seems to be due to the fact that the shortcode for the included types is using a mix of “on” strings and empty strings, whereas the pre_get_posts hook looks for “off” strings to remove any unused type. But since the value is either “on” or empty, it never excludes any post type from the query.
I don’t know if this was just a mistake or an update in Divi multiple checkbox handling. Anyway, I think you should be able to fix it quite easily. Do you plan to release an official update soon ?
Best regards,
Fred
- The topic ‘All post types are included in the results’ is closed to new replies.