- This topic has 1 reply, 2 voices, and was last updated 1 year, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Using current post id in shortcodes
Hi,
Is it possible to use the current post id in a shortcode rather than having to enter the id= ?
For example:
[mphb_rates id=”9373″]
Can we substitute id=”9373″ with the post id on an a single accommodation post.
I’m trying to build a template which auto populates all info…
Regards
Paul
Hi Paul,
Thanks for your question. You may follow this post to learn how to build a custom template for the accommodation type page https://motopress.com/blog/hotel-booking-styles-addon-single-accommodations/
There are used blocks that fetch the ID of the current accommodation type.
best regards,
John Davis
This website uses cookies
By clicking “Accept All”, you agree that we can store cookies on your device and disclose information in accordance with our Cookie Policy
Necessary Cookies
These cookies are essential for website functionality and cannot be disabled.
Advertising
These cookies, set by us and our advertising partners, aim to give you useful content and measure how well it works.
Analytics
These cookies help us improve performance by tracking user interactions on our website.