• Resolved spike210957

    (@spike210957)


    I have 5 advert categories one of which has sub categories.

    My ads are displayed using like this:

    [adverts_list category=”54″ display=”list” switch_views=1]

    Now for the 1 category which has subcategories I’d like to be able to use
    search_by_category_form_load and search_by_category_query.

    But of course when I add the code it applies to all categories and is a little confusing.

    Is there any way of just making it apply to my one category type?

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    You would need to use the adverts_form_bind filter to set a value for the category field (so the category 54 would be preselected), however in adverts_form_bind you will not be able to access the shortcode params, so it will not be possible to tell which value should be set in the form.

Viewing 1 replies (of 1 total)
  • The topic ‘Search By Category’ is closed to new replies.