Forums › Forums › Search & Filter Pro › diferent result.php template for each search form
- This topic has 5 replies, 2 voices, and was last updated 10 years, 6 months ago by
Anonymous.
-
Anonymous(Private) October 7, 2015 at 11:57 am #26701
Hi, I’ve 2 search forms:
here:
http://www.tristaryachts.com/charter-2/and here:
http://www.tristaryachts.com/brokerage/Right know both are using the “shortcode + result.php” option
I need them to use diferents “result.php” how can I do this?
Thank.
Ross Moderator(Private) October 7, 2015 at 11:59 am #26702You may use the ID of the search form as the template name – ie
89.php– please see the docs:Thanks
Anonymous(Private) October 13, 2015 at 10:40 am #27181Perfect, thanks, I’ll try this.
I’ve another question, this website has 2 more language besides English.
I’m using WPML, how can I translate this php file?? (it has text inside)
Does your plugin has any configuration to translate it, using this plugin?Thanks
Ross Moderator(Private) October 15, 2015 at 4:45 pm #27442Hey Cristian
To translate files in here is just the same as for you theme…
https://codex.wordpress.org/I18n_for_WordPress_Developers
So whenever you use a string in teh template, you probably want to wrap it in:
Taken from:
https://codex.wordpress.org/Function_Reference/_e
Thanks
Ross Moderator(Private) October 15, 2015 at 4:47 pm #27445Also, as an FYI, each ID changes for each language, so if you create a search form in each language, you can just use the individual ID number as your template name – each lang version will have a different post ID.
Thanks
-
AuthorPosts