It seems the solution I needed was to add this snippet of code to my custom template file for the form page.
$pmc = $_GET['pmc'];
if($pmc == false){
header('Location: ' . get_bloginfo('url') );
}
Related Posts:
- Browser title script ignoring is_page /else conditional [closed]
- WordPress from url get external source title
- REQUIRED: get_bloginfo(‘template_url’) was found in the file search.php. Use get_template_directory_uri() instead
- Can’t put a hyperlink on Featured Post’s Image
- Redirect users not logged in to the standard login page (and back) from some posts and pages
- get_page_by_title() doesn’t return the post object if the title has inverted comma (‘)
- if is specific custom post in cpt
- How do I use WP_query with multiple post IDs?
- esc_attr() right way and use
- Get meta_id along with meta_key and meta_value
- Show content if parent page has children
- Detection of theme being used
- Where to include php files in wordpress and how to refer to them later [closed]
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to order posts by modified date without using ‘query_posts’?
- How to add a featured image to a existing post via php?
- How to add 2 posts under another post? Formatting should be intact
- Get widget settings function?
- wp_handle_upload_prefilter valid date from input file
- Mysterious HTTP 404 header in my own scripts
- Archive dropdown styling not applied
- Adding tawk.to code just before body tag on functions.php file
- Custom php page outside the scope of my theme
- How to get 2 or multiple custom post types in wordpress functions.php
- Interrupting $html.= ‘ for IF statement
- Asking popup for delete post in WordPress [closed]
- Implement toggle switch for theme options in settings API
- Show comments menu in dashboard only if the site has comment
- WP nonce invalid
- Creating a Multi-Level Associative Object Using AJAX
- Create WP_Query to search for posts by their categories or their parent/child categories
- add_action shortcut?
- Must I download entire WP directory for each separate instance/website that uses WP?
- My custom wp-admin php files stopped working
- Get page that displays all children of taxonomy parent
- WordPress default Search function inconsistent in WooCommerce Product Titles
- How WordPress reacts to a lack of memory of the server [closed]
- Function to capture a value and store it in a variable
- My new button is in the wrong place
- Checking array against author id in loop
- How do I Turn This Into An if statement?
- Why does abstracting html from plugin code result in loss of access to wordpress functions?
- Show a different code on front page to other pages
- Make PHP work with HTML tags
- Which is the correct way to conditionally enqueue a CSS file?
- how to remove colon and white space in a string by php
- Admin ToolBar not being displayed at top of site
- Undefined method class::construct() when creating a plugin
- Why are the details of my todo not saving?
- Theme activation hook in php class
- Tell WP register script to load a script only when the entire page is loaded
- How do I get an external php page to load using javascript
- Add title=”” to A PHP Code
- Redirecting to a custom forgot password page
- How to pass current loop data into nested loop
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- Proper way to use WordPress function with AJAX PHP file
- Custom navigation menu with awsAccordion
- Taxonomy term count
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- List of Events with Multiple Dates: Only NEXT Date
- How to restrict shipping zone in a specific interval time
- Can/should we delete wordpress cron jobs with no action?
- Accessing an instanciated class
- Hide A Class and Add Custom HTML Code Using WordPress
- Rewrite rule don’t work in wordpress on xamp
- Display Visual Composer shortcode if a post belongs in specific categories
- How to translate breadcrumbs
- Resize post thumbnail
- reset data of an array
- product_type_options get saved value [closed]
- How to create a widget with a populated dropdown?
- Get user by meta data key and velue
- Logo custom width not implementing
- How to use a PHP file to control the content of a blog post
- Add another role to a user when they click a button?
- Custom theme admin-ajax.php 400 (Bad Request)
- Using wordpress functions in class and change my code to OOP PHP
- Unable to pass arguments to function used in add_action
- How to limit functionality of a woocommerce plugin to only certain user role?
- What is the proper way to call a function (from functions.php) on a link click?
- Making list of posts with chosen description
- Use PHP code in Menu Admin Section
- Multiple sections in Theme Customizer overwritten
- Front page not loading after updating PHP version (ec2)
- Querying posts based off a jquery datepicker
- Display post from a category
- See output of a sql query while plugin installation in wordpress
- Shortcode Display From WordPress Dashboard Page Without Using post_id
- Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset -1
- Send foreach $_post method to contact form 7 [closed]
- Null value given when confirming email’s
- Predefine Magazine Style Layouts
- How to use url and amin-ajax.php
- WP – Ajax call back data printed in the console.log
- Dynamic Email Handler with ‘header (“Location: …’
- Grabbing value of input field inside of array
- Implement OAuth2 in custom plugin
- Count custom posts type and filter by tag
- Error with PHP 8