Category:Wordpress: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Widgets]] | [[Category:Widgets]] | ||
[[Category: | [[Category:Marketplace]] | ||
[[Category:Booking_Engine]] | [[Category:Booking_Engine]] | ||
[[Category:Booking_Page]] | [[Category:Booking_Page]] | ||
| Line 6: | Line 6: | ||
This page explains how to install and customise the Wordpress plugin. | This page explains how to install and customise the Wordpress plugin. | ||
The [https://wordpress.org/plugins/beds24-online-booking/ Wordpress Plugin] allows you to add an embedded booking page and/or booking widgets via short codes. | The [https://wordpress.org/plugins/beds24-online-booking/ Wordpress Plugin] allows you to add an embedded booking page and/or booking widgets via short codes. | ||
==Install the Plugin == | |||
==Install the Plugin on your website == | |||
Add and activate the plugin | Add and activate the plugin | ||
| Line 13: | Line 14: | ||
<span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> If your pages is hosted on WordPress.com you might need to upgrade your plan so you can install plugins. | <span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> If your pages is hosted on WordPress.com you might need to upgrade your plan so you can install plugins. | ||
You can uplaod the plugin directly from the "Plugins" section in your Wordpress page or downlowd it: https://wordpress.org/plugins/beds24-online-booking/ | |||
==Embed your Booking Page == | ==Embed your Booking Page == | ||
| Line 111: | Line 114: | ||
Click on on the link to edit: | Click on on the link to edit: | ||
*To change the default number of guests search for: | |||
<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> | |||
Then click "Update File" | |||
*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> | ||
Then click "Update File" | |||
if (!isset($_REQUEST['numnight'])) $_REQUEST['numnight'] = 3; | |||
*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" | ||
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. | ||