• Resolved tamersharkas

    (@tamersharkas)


    Hi, I just activated the Vik booking free plugin to test it to buy the pro plugin and the channel manager plugin, I am using Divi theme, when I tried to put “Search Form” shortcode and “room list shortcode” in the same page, it shows the search form in both shortcodes shown in the attached URL.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    Thanks for evaluating our plugin. Unfortunately, two Shortcodes of Vik Booking cannot be rendered in the same page, I’m sorry. If you use two different Shortcodes that belong to Vik Booking on the same Post/Page, then only the last one will be displayed correctly.

    The reason of this effect is that Vik Booking has been written in PHP by following the MVC pattern (“Model-View-Controller”, it’s a coding technique/style, a pattern), and so only one execution buffer can be sent to output from one View (page type) per request.
    That is why you only see one Shortcode being rendered.

    In these cases we suggest using the Widgets that come with Vik Booking. For example, the “Search Form” is also available as a Widget, and if you visit our demo website you will find the Search Form widget in the home page, but you are free to use it on any other page of your website, even together with one Shortcode, which will be rendered properly.

    Moreover, Shortcodes are not supposed to be used in the home page, you should only use Widgets in your home page in order for the routing functions to work properly. Just remember that Widgets will display an important parameter in the wp-admin section called “Page”. This should be set to a page/post using one Shortcode of Vik Booking so that you can control the landing page URL or any routing function.

    We hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘More than 1 shortcode in same page’ is closed to new replies.