• Resolved stagezero

    (@stagezero)


    I have a custom wp_query that has search…

    ‘s’ => $_GET[‘keyword’]

    filter everything does not catch this custom post request.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    Hello @stagezero

    Filter Everything supports for filtering only native (Main) WP_Query. The custom WP_Queries can be filtered with the PRO version only.

    Thread Starter stagezero

    (@stagezero)

    Im working on a client’s website that has pro version installed.
    It works on everything other than search. When there is the search involved, it does not filter the keyword.

    For example:

    ../brand-tesla/$keyword=models -> this is not working.

    If I change the query to
    ../brand-tesla/$s=models -> looking at the query monitor it does work.

    Since the theme code is already made and lots of dependencies already,
    I can’t change ‘s’ => $_GET[‘keyword’] to ‘s’ => $_GET[‘s’]

    Thread Starter stagezero

    (@stagezero)

    Here’s the custom query args.
    Located on a custom page for search result of a custom post type.

    $search_qry = array(
            'post_type' => "property",
            'post_status' => 'publish',
            's' => $_GET['keyword']
    );

    Sorting without $_GET[‘keyword’] works fine. As soon I start having $_GET[‘keyword’], the filter does not work and it only takes the search ‘keyword’ argument.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issues with custom search query.’ is closed to new replies.