Shortcodes with ID not quite returning correct results

Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Shortcodes with ID not quite returning correct results

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #671412
    Matthew Slack
    Participant

    Hi, i’m having trouble with the shortcodes. For example..

    [mphb_availability id=”1350″] displays the form, but returns a set of results for *all* ID’s, not just 1350. The ID of 1350 is in the URL in the results, but all accommodation types are shown.

    Any ideas?

    #671898
    J. Davis
    Keymaster

    Hi Matthew,

    Yes, it works properly as it shows the accommodation you check availability for as first in a search (after recommended section if it is enabled).
    It shows all possible variation for your guests.

    best regards,
    John

    #671996
    Matthew Slack
    Participant

    Hi, that’s a strange way to return the results, as if you’re doing a search for one ID only, then surely the results page should just carry that ID.

    Is there any way to search and return the availability of one ID only?

    #672527
    J. Davis
    Keymaster

    Hi Matthew,

    You can enable direct booking option in plugin settings to check availability of certain accommodation type without going to search results page. It works either for accommodation type pages and for shortcode to check availability of certain accommodation type.

    Best regards,
    John

    #672538
    Matthew Slack
    Participant

    Unofrtunately though , it works universally, which means it changes *all* results. That means we then cant use the results page at all should we wish to on another part of the site.

    It would be better to amend the plugin to only return that one ID in the results page when requested.

    #672879
    J. Davis
    Keymaster

    Hi Matthew,

    General search availability form will work in the same way as before enabling direct booking and it will show all results though.

    best regards,
    John

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.