Category:Wordpress: Difference between revisions

Jump to navigation Jump to search
Lesley (talk | contribs)
Line 111: Line 111:
Click on on the link to edit:  
Click on on the link to edit:  


To change the default number of guests search for:
*To change the default number of guests search for:
if (!isset($_REQUEST['numadult'])) $_REQUEST['numadult'] = 2;
<code> if (!isset($_REQUEST['numadult'])) $_REQUEST['numadult'] = 2; and change 1 to your default number of guests e.g. if (!isset($_REQUEST['numadult'])) $_REQUEST['numadult'] = 1;</code>
and change 1 to your default number of guests e.g.  
Then click "Update File"
if (!isset($_REQUEST['numadult'])) $_REQUEST['numadult'] = 1;
Click "Update File"


To change the default number of nights search for:
*To change the default number of nights search for:
  if (!isset($_REQUEST['numnight'])) $_REQUEST['numnight'] = 1;
<code> if (!isset($_REQUEST['numnight'])) $_REQUEST['numnight'] = 1;and change 1 to your default min number of nights e.g.  if (!isset($_REQUEST['numnight'])) $_REQUEST['numnight'] = 3;</code>
and change 1 to your default min number of nights e.g.  
Then click "Update File"
  if (!isset($_REQUEST['numnight'])) $_REQUEST['numnight'] = 3;
Click "Update File"


To change the maximum number of guests of  search for
*To change the maximum number of guests of  search for
  <?php for ($i=1; $i<=12; $i++)  
<code> <?php for ($i=1; $i<=12; $i++)  change 12 to your max number of guests e.g. <?php for ($i=1; $i<=4; $i++) </code>
  change 12 to your max number of guests e.g.  
Then click "Update File"
<?php for ($i=1; $i<=4; $i++)  
Click "Update File"


You can save the file in your theme directory if you want to avoid over-writing if you update the plugin.
You can save the file in your theme directory if you want to avoid over-writing if you update the plugin.