• See https://www.ads-software.com/support/topic/exclude-pages-only-include-posts/

    Using this plugin makes it impossible to use WP_Query to get a list of only posts (excluding pages), i.e., when a category filter is added to WP_Query, this plugin seems to insert “page” into the post_type even when the caller specifically restricted it to just this:

        [post_type] => Array
            (
                [0] => post
            )

    Summary: If this plugin is used, all other plugins and PHP code that uses WP_Query to search for both a specific category and specific post_type (such as “post”) will break since this plugin will change that to “post,page” and then the display will contain both pages and posts instead of just posts.

  • The topic ‘Breaks other plugins – breaks WP_Query posts only lists’ is closed to new replies.