Jump to content


Photo
- - - - -
Open

Where is search.php



  • Please log in to reply
1 reply to this topic

#1 linkinp

linkinp

    Member

  • Members
  • 26 posts

Posted 28 September 2012 - 04:02 AM

I need to modify search.php and add some custom code.
I need to set a variable and be able to modify the query.

How can I do this ?

#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 28 September 2012 - 12:30 PM

There is no search.php in the framework, you would have to filter the search query using pre_get_posts

Please Login or Register to see this Hidden Content

Something like this: