Would it be an issue of permalink (20) not existing and thus just returning the current page?
Yes, it seems that is happened now. Try to change the id fo that permalink to your booking page id.
get_permalink( BOOKING_PAGE_ID )
Related Posts:
- Using Multiple Submit buttons to trigger customised php functions
- Search only working on front page (index) , not working on other pages
- Custom PHP form needs refresh to load page correctly
- How to edit button permalink inside function.php using a child theme?
- How to stop form resubmission on page refresh
- Disable Attachment Pages Completely
- How to correctly submit a search form and display the result in an independent page
- Metabox repeating fields – radio buttons not saving correctly
- How to exclude pages from the search results
- Facebook Comment Count
- How to handle a custom form in wordpress to submit to another page?
- Creating a WordPress form with a PHP script and default header
- Submitting form via admin-post.php and handling errors
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- Getting the dropdown menu to redirect to different pages?
- Processing a subscription form with POST method?
- Featured image fallback link to permalink
- Displaying a button on each post
- Do changes to WordPress permalink custom structure affect old urls?
- Get Admin Email Address From External PHP page
- Adding Custom Forms
- How do I let users upload files to a chosen location?
- Insert a button on a page with random number generation
- How to create a form and display its content as table in admin panel?
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- How to limit the number of forgot password reset attempts in WordPress?
- Modify HTML structure of fields in woocommerce checkout form
- Change “add to cart” button color based on Woocommerce product category [closed]
- Ajax call return 404
- Show success or error messages in Ajax response to WordPress custom registration form
- Styling my own password protected page, how to deal with wrong password?
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Form Security: nonce vs. jQuery
- element not working in Safari [closed]
- get_template_directory_uri() providing wrong path for img
- WordPress comment submit button substitutes/options
- How to execute html code inside php?
- stripping tags from excerpt in WordPress is not working
- Can a page contain php code?
- What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?
- How to display success message correctly and delete it when the page is refreshed
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- Cannot access $wpdb, comes back NULL
- Adding Additional Variables on Menus Page
- form built dynamically with php, not submitting
- PHP- Why is my contact form keep showing it is invalid? [closed]
- form $_post action value gets truncated after it passes through two forms
- How to make blog post entries appear as input form instead of just text?
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- Adding data to custom wordpress database table
- WordPress theme showing blank page
- Strip hashtag off permalink with php
- Page Options Saving But Not Updating In Backend
- What should I write in the post action of this front end post form?
- Contact form – problem with displaying message about sent mail
- HTML Form Question
- Allow two posts (from different categories) to have the same slug
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- Trying to update Woocommerce meta values
- Form from within a page
- Updating user meta adds string count to value?
- I want to retrieve the email or username data entered for password reset, but failed. how can I do it?
- wordpress contact form messages not sending although it saying they were sent successfully with this php code
- Rewrite rule not working, but only when parameter is text
- How to create a widget with a populated dropdown?
- How does Permalink work with the AMP plugin after Removing Parent Permalink Catalog from Posts
- Using a PHP form, get the page title or any other element in the sent e-mail
- Post permalink buttons all going to the first post
- form submission reverts to index.php template
- WordPress/NGINX not respecting the category URL for new posts
- WordPress generates weird permalinks
- Javascript / PHP – closing the loop
- Permalink like example.com/taxonomy/post_type/postname
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- Custom Plugin Develoment, Form Action
- Adding action item to admin users table and sending email
- Trouble with checked() for array of multiple checkboxes
- Custom HTML form using PHP – help with ajax/username validation
- redirect 301 with special character like WIX site “#!”
- Passed variable gets undefined variable error on insert on next page
- How to set up an auto delete post?
- Trying to display user meta by “name” – not by “ID”
- Newly published content gives 404 on wordpress
- Multiple URL from Custom post name
- Display default WordPress login/registration form into a modal window
- get_permalink returning first letter
- Trouble using wordpress functions in a pop-up modal form
- custom contact form no longer working (because of 3.2?)
- Correct Syntax for uploading files to custom directory in WordPress
- ajax form function error
- Send foreach $_post method to contact form 7 [closed]
- php inside HTML via shortcode? [closed]
- Use HTML Form Data in PHP Function – WordPress Admin Page
- Contact form with dynamic dropdown and filter
- how to goto specific page number including title with permalink
- How to extract URLs from wordpress taxonomies
- WordPress 6.1.1 UTF8 Slug Limit Increase
- Custom form that stores data in mysql database
- Putting form result in my database