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?
- Change “add to cart” button color based on Woocommerce product category [closed]
- Post + form + action + results on the same page
- Ajax call return 404
- How to pre populate a form field with a link of a current user’s author profile?
- Why Won’t My Inputs in a form with a Get method work together?
- Input data from email form not going to JSON file
- How to get the value of input hidden html from text editor to custom page template?
- Why my image upload button is not working in wordpress widget area?
- 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?
- Contact form won’t submit
- Create custom permalinks to show Custom Post Type’s relationship?
- wp_mail file attachment not being placed in upload folder?
- Search Query: how to construct a search string from two select elements?
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Databases – Submitting data from inputs to database [closed]
- How to show a ‘correct’ message after submit a form?
- db converts decimal number wrong
- Form Security: nonce vs. jQuery
- WordPress admin-ajax.php 400 bad request
- Ajax contact form return 0
- Trying do build a contact form
- “operation successful” message
- User register hook is not working in woocomerce register form
- Search WordPress using static html page
- How to get post permalink url without a href
- AJAX button action in foreach
- 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?
- Function won’t run onclick using Ajax
- stripping tags from excerpt in WordPress is not working
- How to put a form with php code into a variable or shortcode?
- Can a page contain php code?
- How to send form data from WordPress (Meta Box) to an OData service?
- Change product_base programmatically
- How to remap one of the TinyMCE Advanced Editor button to open the wordpress media library?
- Divi change project category slug
- What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?
- WordPress shortcode returns the data before
- Shortcode to embed Edit Account form not working
- Form Submission Not Working In Custom Theme
- Capture form data in one function and use it in another function (same file)
- 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
- Custom post type permalinks do not appear using the link functions
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- Why does my user not get added to the database on custom registration?
- Cannot access $wpdb, comes back NULL
- Remove slugs from custom posts type
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- How to add post meta in while loop?
- .html end of URl affected to SEO?
- How to set cookies
- PHP Contact form
- Get wp_current_user_id using PHP and MySQL
- 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]
- Simple php in wordpress widget [closed]
- how to edit a specific post slug using a php code?
- form $_post action value gets truncated after it passes through two forms
- Pass important values server-side when processing form
- WPDB secure custom form
- Adding attribute to the post.php form tag in wp-admin
- How to make blog post entries appear as input form instead of just text?
- Creating a Category Taxonomy
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- Adding data to custom wordpress database table
- Make a page (url) not cacheable [closed]
- WordPress theme showing blank page
- Front end file upload returning wrong attachment url
- WordPressUser Submission Form
- Display multi-select box choices in a bullet list [closed]
- Strip hashtag off permalink with php
- Page Options Saving But Not Updating In Backend
- Insert PHP code in Text
- What should I write in the post action of this front end post form?
- Permalinks: site.com/post-tite vs site.com/post-id/post-title for SEO and Speed
- Can not call .php files after switching to %postname%
- Custom forms with HTML
- WordPress permalink issue
- Testing a Form’s Zipcode Field with Regular Expressions to Determine WordPress Page Behaviour
- Contact form – problem with displaying message about sent mail
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Change permalink structure specific category
- Cascading dropdown select search based on Parent Page & Child Page
- understand what code is doing when prepending /blog
- Custom URL for multiple categories hierarchy
- HTML Form Question
- WordPress redirects to localhost
- Add a product category to a specific product via a button
- Send an e-mail on address with the link with disliked post
- 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