Skip to content

Searching posts not working when specific taxonomy not set #3

Open
@quickdry

Description

@quickdry

this will use the "Tag" taxonomy as the example

If the tag dropdown is set to a specific Tag, and search is done via free entry text, the get post query works as expected, and finds all posts with "Tag" and searched for text.

If the Tag dropdown is set to "All Tags" and search is done via free entry text, the get post query has a (0=1) inserted in the where clause where the taxonomy type would be (if this (0=1) is removed from the query, the query proceeds properly.)

(Categories work normally when set to "All categories", but from what I could understand in the code, these are unmodified from standard behaviour)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions