Support Forums - Classified Ads Script Osclass

Osclass theme support => Delta Osclass Theme => Topic started by: nikemark on September 24, 2024, 08:15:26 AM

Title: Custom filed in inc.search.php
Post by: nikemark on September 24, 2024, 08:15:26 AM
Hello, please tell me how I can display a custom field in the search at the top, which is in the inc.search.php file where the search is by name, category and city, I need to add a custom field by which I want the search to work as well. Is it possible to do this and how? Thanks for the answers.
Title: Re: Custom filed in inc.search.php
Post by: MB Themes on September 24, 2024, 01:23:23 PM
You must move hook functions.

  if(osc_search_category_id()) {
    osc_run_hook('search_form', osc_search_category_id());
  } else {
    osc_run_hook('search_form');
  }
Title: Re: Custom filed in inc.search.php
Post by: nikemark on September 24, 2024, 01:59:10 PM
Tell me in which file I need to add this hook code?


You must move hook functions.

  if(osc_search_category_id()) {
    osc_run_hook('search_form', osc_search_category_id());
  } else {
    osc_run_hook('search_form');
  }
Title: Re: Custom filed in inc.search.php
Post by: MB Themes on September 24, 2024, 09:00:55 PM
Its code in search.php that is already there and display plugin data.