Shortcode Placement
-
Hi
Excellent plugin – have been waiting for a good booking plugin.
I noticed that while using the shortcode it always puts the button/form at the top of the post/page. After scouring your code I found where the shortcodes were created and if you edit libs/booking-express-class.php on line 336
fromfunction bookingXpressShortCode() { return extract_ShortCodes(); } function bookingXpressShortCode1() { return extract_ShortCodes1(); } function bookingXpressShortCode2() { return extract_ShortCodes2(); } function bookingXpressShortCode3() { return extract_ShortCodes3(); } function bookingXpressShortCode4() { return extract_ShortCodes4(); }
to
function bookingXpressShortCode() { ob_start(); extract_ShortCodes(); $content = ob_get_clean(); return $content; } function bookingXpressShortCode1() { ob_start(); extract_ShortCodes1(); $content = ob_get_clean(); return $content; } function bookingXpressShortCode2() { ob_start(); extract_ShortCodes2(); $content = ob_get_clean(); return $content; } function bookingXpressShortCode3() { ob_start(); extract_ShortCodes3(); $content = ob_get_clean(); return $content; } function bookingXpressShortCode4() { ob_start(); extract_ShortCodes4(); $content = ob_get_clean(); return $content; }
it should place the button where the shortcode is placed.
I hope that helps????In the future are you planning to add the functionality to be able to download your bookings by day, ie in the morning download a copy of the days bookings?
Great Plugin look forward to seeing it develop
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Shortcode Placement’ is closed to new replies.