Shortcode: Destinations

JT Travel Booking comes with the [destinations] shortcode that gives you the option to display your destinations/trips on any page of your WordPress site.

Let’s see how this shortcode works.

Basic Shortcode

By uing the shortcode

[destinations]

you can display all destinations in a grid with their basic info such as title, price and number of days.

Advanced Shortcode

We know that you want to have flexibility when you create your site, so we added some options to the shortcode. By using the following attributes, you can define a few more things:

title

Give a title to your list.

Shortcode

[destinations title="Summer Destinations"]

Preview:

Summer Destinations

Alaska

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$980
days6

num

Define the number of destinations you want to display. Default value is -1 (all destinations).

Shortcode:

[destinations num="3"]

Preview:

Alaska

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$980
days6

Swiss Alps

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$1099
days7

Scuba Diving in Costa Rica

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$900
days5

cat

A specific category of your destinations. Note that you have to use the category’s slug.

Shortcode:

[destinations cat="summer-destinations"]

Preview:

Scuba Diving in Costa Rica

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$900
days5

Surfing in Hawaii

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$780
days5

Relax in Seychelles

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$1200
days8

orderby

Display destinations ordered by ID, title or rand (random order).

Shortcode:

[destinations orderby="title"]

Preview:

Weekend in London

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$300
days2

Swiss Alps

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$1099
days7

Surfing in Hawaii

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$780
days5

order

Order destinations in an Ascending (ASC) or Descending (DESC) order.

Shortcode:

[destinations order="ASC"]

Preview:

10 days in New York

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$1500
days10

5 Days in Himalayas

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$2100
days5

Alaska

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer fringilla, nibh eget rutrum lacinia, risus sapien vulputate diam, vitae hendrerit ex massa at odio. Ut convallis orci rhoncus augue dignissim, non sagittis lacus condimentum.
Starts from:$980
days6

style

The list’s style you want to use on your site. The available styles are: default, grid-2-cols, grid-3-cols, grid-3-cols-colored, grid-4-cols, grid-5-cols, default-slideset, slideset-2-cols, one-column, one-column-2, one-column-3.

Shortcode:

[destinations style="grid-3-cols-colored"]

Preview:

Alaska

Starts from:$980
days6

Swiss Alps

Starts from:$1099
days7

Scuba Diving in Costa Rica

Starts from:$900
days5

Note that you can also use all attributes together. For example:

[destinations title="Summer Destinations" cat="summer-destinations" num="3" orderby="title" order="ASC" style="grid-3-cols"]

Do you have any problems with JT Travel Booking?