Category:Wordpress: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Widgets]]
[[Category:Widgets]]
[[Category:Apps]]
[[Category:Marketplace]]
[[Category:Booking_Engine]]
[[Category:Booking_Engine]]
[[Category:Booking_Page]]
<div class="heading">Wordpress Plugin</div>
<div class="heading">Wordpress Plugin</div>
  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


[[Image:install_1.png|450px|link=]]
[[Image:install_1.png|450px|link=]]
[[Media:install_1.png|view large]]
[[Media:install_1.png|view large]]
<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 40: Line 46:
[beds24-landing roomid="123"]  
[beds24-landing roomid="123"]  


[beds24-embed roompid="123"]
[beds24-embed roomid="123"]


===Embedded booking page  for a specific property ===
===Embedded booking page  for a specific property ===
Line 67: Line 73:


===Booking Box, Booking Strip, Availability Calendar ===
===Booking Box, Booking Strip, Availability Calendar ===
Short Codes for Booking Box, Booking Strip, Availability Calendar are generated in the widget designer in the Beds24 control panel in {#fas:cog}} (SETTINGS) BOOKING ENGINE > BOOKING WIDGETS. Copy the short code from there and paste it where you want to display the widget on your Wordpress page..
Short Codes for Booking Box, Booking Strip, Availability Calendar are generated in the widget designer in the Beds24 control panel in {{#fas:cog}} (SETTINGS) BOOKING ENGINE > BOOKING WIDGETS. Copy the short code from there and paste it where you want to display the widget on your Wordpress page..


Generate the widget in {#fas:cog}} (SETTINGS) BOOKING ENGINE > BOOKING WIDGETS
Generate the widget in {{#fas:cog}} (SETTINGS) BOOKING ENGINE > BOOKING WIDGETS


[[Image:Wordpresswidget_1.png|450px|link=]]
[[Image:Wordpresswidget_1.png|450px|link=]]
Line 81: Line 87:


If you want to allow guests to search by certain criteria:
If you want to allow guests to search by certain criteria:
*first create the search criteria in {#fas:cog}} (SETTINGS) BOOKING ENGINE > MULTI BOOKING PAGE > SEARCH CRITERIA then go to {#fas:cog}} (SETTINGS) BOOKING ENGINE > MULTI BOOKING PAGE >PROPERTY SETTINGS and assign the applicable criteria to each property
*first create the search criteria in {{#fas:cog}} (SETTINGS) BOOKING ENGINE > MULTI BOOKING PAGE > SEARCH CRITERIA then go to {{#fas:cog}} (SETTINGS) BOOKING ENGINE > MULTI BOOKING PAGE >PROPERTY SETTINGS and assign the applicable criteria to each property
*Once you have set and assigned your search criteria you can go to {#fas:cog}} (SETTINGS) BOOKING ENGINE  > BOOKING WIDGETS. Set PROPERTY = ALL and design your widget, ensuring that you change "Search Filter" to show the search criteria in your booking widget.
*Once you have set and assigned your search criteria you can go to {{#fas:cog}} (SETTINGS) BOOKING ENGINE  > BOOKING WIDGETS. Set PROPERTY = ALL and design your widget, ensuring that you change "Search Filter" to show the search criteria in your booking widget.
*Generate the code for the widget and paste it into the source code (Set the Wordpress editor to "Text") where you want to display the widget.
*Generate the code for the widget and paste it into the source code (Set the Wordpress editor to "Text") where you want to display the widget.


Line 108: 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:
*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.


=Troublehoosting=
=Troubleshooting=
See [[/Embedded_Iframe#Troubleshooting|here]] for common problems with Iframes and how to fix them.
See [[/Embedded_Iframe#Troubleshooting|here]] for common problems with Iframes and how to fix them.