Using current post id in shortcodesFree and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Using current post id in shortcodes Search for: SearchThis topic has 1 reply, 2 voices, and was last updated 1 year, 3 months ago by J. Davis.Viewing 2 posts - 1 through 2 (of 2 total)AuthorPosts July 27, 2023 at 1:51 am #1483959 Paul RyanParticipantHi,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…RegardsPaul July 31, 2023 at 6:33 am #1485420 J. DavisKeymasterHi 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 DavisAuthorPostsViewing 2 posts - 1 through 2 (of 2 total)You must be logged in to reply to this topic.Log In Username: Password: Keep me signed in Log In