Hotels Plugin Shortcodes

WordPress shortcodes can be included in the text for posts or pages. They will be replaced by html hotel details based on their parameters.

To use a shortcode simply type it in the format below. So for example, a list of hotels in Angeles would be:

[ stb_hotels_simple id="resort_id" ]

Please note the above has spaces after the first and before the last brackets. These spaces are only there to prevent WordPress from processing the examples and should be removed for live use.

The following are possible shortcodes, parameters marked * are required.

stb_hotels_inline

insert the name, icon, tooltip and link for a specific hotel inline into the text flow.

This is some text about [ stb_hotels_inline id="grandcentralsuites" ]. Cool huh!

This is some text about [stb_hotels_inline id=”grandcentralsuites”]. Cool huh!

stb_hotels_short

Insert a short description with icon and links for a specific hotel. Parameters: id*

[ stb_hotels_short id="grandcentralsuites" ]

[stb_hotels_short id=”grandcentralsuites”]

stb_hotels_long

Insert a long description with image, icon and links for a specific hotel. Parameters: id*

[ stb_hotels_long id="grandcentralsuites" ]

[stb_hotels_long id=”grandcentralsuites”]

stb_hotels_list

Produce a list of hotels. Parameters: search*, max

Example 1

[ stb_hotels_list search="golf" max="2" ]

[stb_hotels_list search=”angeles golf” max=”2″]

Example 2

[ stb_hotels_list search="golf" max="1" ]

[stb_hotels_list search=”angeles golf” max=”1″]

stb_hotels_cards

Produce a list of hotels. Parameters: search*, max, cols (default 2)

Example 1

[ stb_hotels_cards search="golf" cols="2" max="2" ]

[stb_hotels_cards search=”golf” cols=”2″ max=”2″]

Example 2

[ stb_hotels_cards search="golf" max="3" cols="3" ]

[stb_hotels_cards search=”golf” max=”3″ cols=”3″]