Homepage & Shortcodes

With BA Tours you will have nice wide and clean landing page. To get full advantage of this and present your Homepage in the best possible way you can use plenty of build-in theme shortcodes listed below.

By default, WordPress shows your most recent posts in reverse chronological order on the front page of your site. To create the static front page:

  • go to the Pages > Add New menu, add shortcodes in the content area and publish new page
  • then go to Administration > Settings > Reading panel, set Front page displays to a static page, and in the drop down menu for Front Page select your page.

If you are not familiar with using WordPress shortcodes, please follow the Shortcode section of the official WordPress Codex.

top-tours

Use this shortcode to display all your tours in compact clear style. Example: [top-tours title="Popular Tours" ids="80, 81, 82"]

Shortcode params:

  • title‘ – main title before content
  • ids‘ – comma separated list of selected tours (optional)
  • per_page‘ – defines number of items to display (10 by default)
  • sort‘ – ‘DESC’ or ‘ASC’ (DESC by default)
  • sortby‘ – ‘price_from’ or ‘rating’ (‘rating’ by default)

special-tours

With this shortcode you can attract more attention of your customers to special tours. Example: [special-tours ids="32, 83" title="Special Tours"]

Shortcode params:

  • title‘ – main title before content
  • ids‘ – comma separated list of selected tours (optional)
  • per_page‘ – defines number of items to display (10 by default)
  • sort‘ – ‘DESC’ or ‘ASC’ (DESC by default)
  • sortby‘ – ‘price_from’ or ‘rating’ (‘rating’ by default)

selected-pages

Use this shortcode to display list of selected pages/posts on the front page. Example: [selected-pages ids="179, 181"]

Shortcode params:

  • title‘ – main title before content
  • ids‘ – comma separated list of selected pages/posts (optional)
  • taxonomy‘ – used if ‘ids’ is not defined, and taxonomy assigned to pages/posts
  • post_type‘ – ‘page’ by default
  • per_page‘ – defines number of items to display (-1 by default)
  • sort‘ – ‘DESC’ or ‘ASC’ (ASC by default)
  • sortby‘ – all accepted by wp function get_posts (‘title’ by default)

features / feature

It’s a two shortcodes combo where [feature] shortcode presents each of your feature and [features] wraps them into a single block:
[features title="Why choose us?"][feature title="Best Price!" fa_class="fas fa-thumbs-up"]Lorem ipsum[/feature][feature title="Tickets included" fa_class="fas fa-ticket-alt"]Lorem ipsum[/feature][feature title="Transfer" fa_class="fas fa-bus"]Lorem ipsum[/feature][/features]

  • features ‘title‘ is for the title of the whole block
  • feature ‘title‘ is for the title of the specific feature
  • feature ‘fa_class‘ is an Font Awesome class for the feature icon
  • feature ‘img_url‘ is for use custom image instead of Font Awesome icon

 

reviews

This shortcode outputs carousel of user reviews for your tours.
[reviews]

Shortcode params:

  • title‘ – main title before content
  • ids‘ – comma separated list of selected reviews (optional)
  • tour_id‘ – limit reviews to selected tour (optional)
  • per_page‘ – defines number of items to display (10 by default)
  • order‘ – ‘DESC’ or ‘ASC’ (DESC by default)
  • orderby‘ – ‘rating’ or any accepted by WP_Comment_Query (‘rating’ by default)
  • autoplay‘ – 1 to autoplay slideshow (0 by default)
  • speed‘ – slideshow speed, ms (3000 by default)

 

tours-map

Use this shortcode to display Google map with all your tour locations marked. This map can be configured in the BA Book Everything plugin settings section.
[tours-map]

selected-tours

This is a modified version of shortcode top-tours, which is suitable for use inside pages with assigned taxonomy (see details in Theme Options). [selected-tours]

Cookies

This site uses cookies to enhance your user experience and analyse traffic to improve this website. By clicking any link on this page you are giving your consent for us to set cookies. Please, see our Privacy Policy for additional information.
Scroll to top