The problem you are encountering is that WordPress and your browser are interpreting everything after the “#” as a client side hash. In other words, PHP and WordPress never see the “?tier=Test1” bit.
There are few ways to fix the issue though I’m not sure which will be most efficient in your situation:
1) Trigger your modal with a JS click event instead of relying on the href attribute.
2) Store your parameters in a different attribute such as ‘data-rel’ and use JS to pull the parameters after the modal loads.
Related Posts:
- Get value of contact form 7 radio button [closed]
- How to find the output of contact form 7 shortcode? [closed]
- Contact Form 7 from adding paragraph and break tags to HTML emails [closed]
- Attaching a pdf to Contact Form 7 e-mail via functions.php [closed]
- How to display posts by current user in a drop down
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- Download PDF after CF7 form submission
- Contact Form 7 – Replace database configured form template with a static file
- Export Form Data to a CSV then send it as an attachment – contact form 7
- Sorting dynamic select/dropdown for Contact Form 7 of Modern Tribe Events posts
- Using CFDB7 vs Custom MySQL Database [closed]
- Contact Form 7 WordPress, checking a few fields, if empty then invalid
- Add custom HTML data to Contact Form 7 mail?
- How to use Contact Form 7 shortcode value in a page?
- Send foreach $_post method to contact form 7 [closed]
- Import and use a variable in additional settings of Contact Form 7 [closed]
- Saving User Input to PHP Variable
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- Contact form with dynamic dropdown and filter
- How can I save a user’s Contact Form 7 inputs as separate columns in a custom WordPress table?
- Divi change project category slug
- Add meta tags to a custom header
- Ajax filter button display all posts
- Check If Post Was Published More Than 6 Months Ago Using get_the_date
- Where are the src and srcset sizes coming from?
- What is the right way to add PHP code to a certain part of a page
- wp_remote_post empty $_POST
- register_setting & add_settings_error validation issues with multiple fields
- PHP code for displaying WordPress posts in a static page not working
- How to add PHP code in functions.php wordpress
- WordPress hit memory limit but not from the server
- How can I spin up a new website for a registered user automatically?
- How to override url params with rewrite rules vars?
- WordPress wp-admin redirect and exception
- Can I make get_users() query global?
- Using Argument from Function to Re-Direct Visitor (WordPress)
- Use $wpdb or other PHP script method to find/replace in WP database
- Add product to cart for user – WC()->cart->add_to_cart [closed]
- What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?
- preg_replace regex problem
- Compare $_POST returned values with term array
- Remove item in Checkout
- email alert for product availability
- How to Update post_modified of all wordpress post
- How to Change CSS Colors from Custom Plugin Settings Page
- malware undetectable by multiple scans
- how to serialize() mysql update data
- Simple WordPress endpoint route doesn’t work
- Correct PHP to output a single result of a Function with SQL Query
- How to relocate paypal button gateway on checkout page in woocommerce
- How to create a field in customize and show that in header.php?
- WordPress shortcode returns the data before
- Passing the name of selected color from the custom component to `render_callback`
- I am receiving a pluggable.php warning sign on my only http:// page
- How to remove the h6 tag for the entry-category Class
- your php installation be missing the MySQL extension WordPress CPANEL [closed]
- Can’t add script immediately after the opening tag on login page?
- Find Site ID From WP_Post
- Is it possible to create new user from external form using REST API?
- WP_Query: getting posts where custom field exists
- Foreach loop inside an array_merge
- page-slug.php not working but only for specific slug
- {$key} or $key?
- How to show meta value code HTML after x paragraph
- Redirect to a page for only logged in user
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- Display the 3 latest WordPress Posts on a Static Page Outside WordPress
- Override user-edit.php to design own profile page
- Live to Local on MAMP, not working, outputting functions.php code
- Remove extract from function
- Undefined offset: 3 in custom function
- List all blogs, but exclude the main site
- How to append to an array and return the results in a filter?
- How to specify the path for require_once in a child theme?
- Set site title & tagline with wp.config or function.php
- How can I add a new row in a separate database when someone registers via WordPress?
- Shortcode to embed Edit Account form not working
- Redirecting to a custom forgot password page
- How to pass a variable to get_template_part that’s updated every time the template part is called?
- Warning: printf(): Too few arguments in helpers.php file
- $_SESSION variable not saving on page refresh or new page
- Form search query – displaying ACF “Post Object” field as results
- Errors after upgrading PHP to 7.4 WordPress
- Design with Elementor and code the rest?
- Add additional functions file instead of functions.php
- How to make jquery count down timer function manually editable
- Issue with fetching mysql data and displaying results via shortcode in webpage
- wp_insert_post() with HTML tags using PHP
- How to rename woocommerce-billing-fields
- Any ideas why I am getting “I’m getting “wp-admin/admin-ajax.php 401 (Unauthorized)”
- InnerBlocks with allowedBlocks not working with acf_register_block
- Can a plugin redirect product page based on IF condition?
- Cant register rest routs from class instance
- Hierarchical taxonomy list with modificated term links
- How can i change variable if condition is not met
- Shortcode not staying inside div tag
- if isset not working for undefined index, how to fix
- HTML showing after PHP code in tag
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- Decoded malware code [closed]