*

nikemark

  • *
  • 2 posts
Custom filed in inc.search.php
« 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.

*

MB Themes

Re: Custom filed in inc.search.php
« Reply #1 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');
  }
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

nikemark

  • *
  • 2 posts
Re: Custom filed in inc.search.php
« Reply #2 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');
  }

*

MB Themes

Re: Custom filed in inc.search.php
« Reply #3 on: September 24, 2024, 09:00:55 PM »
Its code in search.php that is already there and display plugin data.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots