Adding a search forms for Aviasales and Hotellook with plugin

The Travelpayouts plugin for WordPress allows for the adding of a flight (Aviasales) and hotel (Hotellook) search form on your blog pages.

Go to the Search Forms section of your dashboard and add a new search form. Get more detailed information about search form customization here.

After adding the search form, uncheck the Short code and Iframe code boxes and copy the search form code.

2017-12-19_12-57-45.png

Then return to the Travelpayouts plugin and go to Search Forms.

mceclip0.png

Click Add a new search form. You will be taken to a new page for search form shortcode generation.

mceclip1.png

Enter the shortcode title and insert the previously copied search form code into the Generated widget code field.

Attention! You can specify the city of departure and the city of arrival in any of three ways:

  1. When adding a shortcode to the website page.
  2. When adding a shortcode in the Search Forms section of the Travelpayouts plugin.
  3. When adding a search form in your dashboard.

The above list is sorted in order of priority, i.e., the city of departure and the city of arrival specified when adding a shortcode to the website page will have a higher priority than the other two options

To save the search form, click Add.

The Shortcode column displays the shortcode for this search form, which can be placed in an article or blog post.

In addition, you can place a search form when editing a page via the editor menu. To do this, click on the Travelpayouts icon in the editor menu:

mceclip0.png

Click Widgets and select the Aviasales or Hotellook program.

Click Settings on the search form widget. In the window that opens, you can choose which search form to place on the page, as well as specify the Sub ID and the city of origin / destination.

mceclip2.png

Was this article helpful?

Have more questions? Submit a request