• Resolved Patrick Heiloo

    (@wbrnd)


    Hi,

    Is it possible to set different args with the wpss_search_query_args filter for a specific post type archive template (for example archive-portfolio.php)? I would like to show the search results on a post type archive template for only that specific post type.

    Thank you,

    With kind regards,

    Patrick Heiloo | We Brand Creative
    Lead Developer

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konstantin Obenland

    (@obenland)

    You’d have to send the context of the post type archive template with the search request by modifying your search form.

    You could then check for it in the filter callback and add that post_type requirement.

    Best,
    Konstantin

    Thread Starter Patrick Heiloo

    (@wbrnd)

    Hi Konstantin,

    Thanks for your reply.
    Unfortunately I can’t figure out what I need to modify to get this working.
    Can you provide me with a piece of example code? ??

    With kind regards,

    Patrick Heiloo | We Brand Creative
    Lead Developer

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Diffirent wpss_search_query_args for post type archive’ is closed to new replies.